|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--intradoc.common.DynamicHtml
Loads and evaluates idoc script resources containing Intradoc server side script.
| Field Summary | |
static int |
CLOSE_TAG_EXTRA_LENGTH
|
DynamicHtml |
m_capturedVersion
If m_tempKey is null, set to a version up the linked list (opposite the order of m_priorScript) to pop to when disposing of this instance. |
java.util.Vector |
m_data
Raw (character) data attached to the dynamic html. |
protected int |
m_exteriorNestingLevel
Tracks exterior nesting level (loop and endloop structures creating an exterior nesting). |
protected java.util.Vector |
m_exteriorNestingTracker
Array of ParseLocationInfo objects for the exterior nesting level (loop and endloop nestings). |
java.lang.String |
m_fileName
If html is parsed from file, this is the name of the file. |
HtmlChunk[] |
m_htmlChunkArray
Used to speed up processing, especially in HPUX. |
java.util.Vector |
m_htmlChunks
Array with each item being either a piece of HTML or a script action. |
protected java.util.Vector |
m_interiorNestingTracker
Vector holding array of Vectors with each Vector entry being an array of ParseLocationInfo objects. |
protected boolean |
m_isInData
Used to indicate whether we are in the middle of extracting a raw data construct inside the file. |
static int |
m_maximumExecutionRecursion
Maximum nesting level during execution of script. |
int |
m_parseCharOffset
Parse character offset from beginning of line where script occurs. |
int |
m_parseLine
Parse line where script occurs. |
DynamicHtml |
m_priorScript
Back pointer to previous implementation of this resource. |
java.lang.String |
m_resourceString
If html is parsed directly of a string, then this is the original string for error reporting. |
java.lang.String |
m_sourceEncoding
The character set encoding of the source for this object. |
java.lang.String |
m_tempKey
Indicates the key to use when looking it up as a temporary resource. |
long |
m_timeStamp
Timestamp of resource being used to load this object. |
static char[] |
XML_SCRIPT_TAG
|
static char[] |
XML_SCRIPT_TAG_END_CHARS
|
static char[] |
XML_SCRIPT_TAG_START_CHARS
Constant prefix used when parsing XML style Idoc script (used in hcsp pages). |
| Constructor Summary | |
DynamicHtml()
Default constructor. |
|
| Method Summary | |
protected void |
addChunks(java.io.Reader reader,
java.io.CharArrayWriter outbuf,
ParseOutput parseOutput,
IdcBreakpoints bp)
Does actual work of parsing HTML server side script into preparsed 'chunks'. |
void |
addNestingInfo(java.util.Vector parseInfos,
ParseOutput parseOutput)
Stores nesting information (loop -> endloop or if -> endif). |
void |
checkBreakpoint(HtmlChunk chunk,
GrammarElement elt,
DynamicHtmlOutput dynCallback)
|
protected boolean |
checkCondition(HtmlChunk chunk,
DynamicHtmlOutput dynCallback,
GrammarElement elt)
Calls callback interface to do a condition check. |
protected void |
createAbsoluteSyntaxException(HtmlChunk chunk,
ParseSyntaxException e)
Creates a ParseSyntaxException by merging information from a ParseSyntaxException containing relative error information with the absolute location information the HtmlChunk object. |
void |
createNestingException(java.util.Vector parseInfos,
java.lang.String msg)
Throws an exception computing appropriate offsets based on nested loops or conditionals. |
DynamicHtml |
findEarliestValidPriorScript(DynamicHtml priorResource)
Using file name matches it compares a new object (this one) against a prexisting object (the passed in parameter) and tries to pick out an appropriate prior script parent that would make an appropriate prior script for the new object. |
protected boolean |
findScriptTag(java.io.Reader reader,
ParseOutput parseOutput)
|
DynamicHtml |
getPriorScript()
Retrieves backpointer to prior implementation of this script resource. |
void |
loadHtml(java.io.Reader reader,
java.lang.String fileName,
boolean isXmlSyntax)
Loads HTML server side script from a reader. |
void |
loadHtmlEx(java.io.Reader reader,
java.lang.String fileName,
boolean isXmlSyntax,
IdcBreakpoints bp)
|
void |
loadHtmlInContext(java.io.Reader reader,
ParseOutput parseOutput)
Loads HTML server side script, can be called on resources stored inside files. |
void |
loadHtmlInContextEx(java.io.Reader reader,
ParseOutput parseOutput,
IdcBreakpoints bp)
|
void |
outputHtml(java.io.Writer writer,
DynamicHtmlOutput dynCallback)
Evaluates this server side page and writes results out to a Writer |
protected int |
outputHtmlEx(int curIndex,
java.io.Writer writer,
DynamicHtmlOutput dynCallback,
int exitType,
boolean doOutput,
boolean[] isBreak,
int[] retType,
int nestLevel)
This service is called recursively. |
GrammarElement |
parseGrammarStatement(HtmlChunk chunk,
GrammarParseState parseState)
Parses a server side script statement into its grammatical elements. |
void |
setPriorScript(DynamicHtml priorScript)
Sets the backpointer to prior implementation of this script resource. |
DynamicHtml |
shallowClone()
Used to get a shallow clone so some external reference entries (such as prior script) can be changed. |
DynamicHtml |
shallowCloneWithPriorScript(DynamicHtml priorScript)
Used to perform a shallow clone of this object so a different prior script can be assigned. |
protected void |
substituteVariable(HtmlChunk chunk,
java.io.Writer writer,
DynamicHtmlOutput dynCallback,
GrammarElement elt)
Calls callback interface to substitute variable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final char[] XML_SCRIPT_TAG_START_CHARS
public static final char[] XML_SCRIPT_TAG_END_CHARS
public static final char[] XML_SCRIPT_TAG
public static final int CLOSE_TAG_EXTRA_LENGTH
public java.util.Vector m_htmlChunks
public HtmlChunk[] m_htmlChunkArray
public java.lang.String m_sourceEncoding
public long m_timeStamp
protected java.util.Vector m_interiorNestingTracker
protected int m_exteriorNestingLevel
protected java.util.Vector m_exteriorNestingTracker
public DynamicHtml m_priorScript
public java.lang.String m_tempKey
public DynamicHtml m_capturedVersion
public int m_parseLine
public int m_parseCharOffset
public java.lang.String m_fileName
public java.lang.String m_resourceString
public java.util.Vector m_data
protected boolean m_isInData
public static final int m_maximumExecutionRecursion
| Constructor Detail |
public DynamicHtml()
| Method Detail |
public void loadHtml(java.io.Reader reader,
java.lang.String fileName,
boolean isXmlSyntax)
throws java.io.IOException,
ParseSyntaxException
java.io.IOException
ParseSyntaxException
public void loadHtmlEx(java.io.Reader reader,
java.lang.String fileName,
boolean isXmlSyntax,
IdcBreakpoints bp)
throws java.io.IOException,
ParseSyntaxException
java.io.IOException
ParseSyntaxException
public void loadHtmlInContext(java.io.Reader reader,
ParseOutput parseOutput)
throws java.io.IOException,
ParseSyntaxException
java.io.IOException
ParseSyntaxException
public void loadHtmlInContextEx(java.io.Reader reader,
ParseOutput parseOutput,
IdcBreakpoints bp)
throws java.io.IOException,
ParseSyntaxException
java.io.IOException
ParseSyntaxException
protected boolean findScriptTag(java.io.Reader reader,
ParseOutput parseOutput)
throws java.io.IOException,
ParseSyntaxException
java.io.IOException
ParseSyntaxException
protected void addChunks(java.io.Reader reader,
java.io.CharArrayWriter outbuf,
ParseOutput parseOutput,
IdcBreakpoints bp)
throws java.io.IOException,
ParseSyntaxException
java.io.IOException
ParseSyntaxException
public void createNestingException(java.util.Vector parseInfos,
java.lang.String msg)
throws ParseSyntaxException
ParseSyntaxException
public void addNestingInfo(java.util.Vector parseInfos,
ParseOutput parseOutput)
public GrammarElement parseGrammarStatement(HtmlChunk chunk,
GrammarParseState parseState)
throws ParseSyntaxException
ParseSyntaxExceptionGrammarParser
public void outputHtml(java.io.Writer writer,
DynamicHtmlOutput dynCallback)
throws java.io.IOException,
ParseSyntaxException
writer - Merged script page is written out to here.dynCallback - A callback object that evaluates the statements in the page.
java.io.IOException
ParseSyntaxExceptionDynamicHtmlOutput
protected int outputHtmlEx(int curIndex,
java.io.Writer writer,
DynamicHtmlOutput dynCallback,
int exitType,
boolean doOutput,
boolean[] isBreak,
int[] retType,
int nestLevel)
throws java.io.IOException,
ParseSyntaxException
java.io.IOException
ParseSyntaxException
public void checkBreakpoint(HtmlChunk chunk,
GrammarElement elt,
DynamicHtmlOutput dynCallback)
public DynamicHtml getPriorScript()
public void setPriorScript(DynamicHtml priorScript)
public DynamicHtml shallowClone()
public DynamicHtml shallowCloneWithPriorScript(DynamicHtml priorScript)
public DynamicHtml findEarliestValidPriorScript(DynamicHtml priorResource)
protected void substituteVariable(HtmlChunk chunk,
java.io.Writer writer,
DynamicHtmlOutput dynCallback,
GrammarElement elt)
throws java.io.IOException,
ParseSyntaxException
java.io.IOException
ParseSyntaxException
protected boolean checkCondition(HtmlChunk chunk,
DynamicHtmlOutput dynCallback,
GrammarElement elt)
throws java.io.IOException,
ParseSyntaxException
java.io.IOException
ParseSyntaxException
protected void createAbsoluteSyntaxException(HtmlChunk chunk,
ParseSyntaxException e)
throws ParseSyntaxException
ParseSyntaxException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
(c) 1996-2005 All rights reserved. Stellent, Inc. |