public abstract class JxpPage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private AstJxpDocument |
_doc
the document *
|
private java.lang.String |
_encoding
the encoding
|
private java.lang.String |
_name
the name *
|
private JxpPageParseException |
_pageParseException
the error message *
|
private JxpPageSource |
_source
the source *
|
Constructor and Description |
---|
JxpPage(JxpPageSource source,
java.lang.String name,
java.lang.String encoding)
Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
assignStaticVariable(java.lang.String name,
java.lang.Object value) |
abstract java.lang.Object |
declareStaticVariable(java.lang.String s,
java.lang.Object value) |
AstJxpDocument |
getDocument()
Return the doc
|
java.lang.String |
getEncoding()
Return the encoding
|
AstJxpDocument |
getJxpDocument()
Get the JxpDocument tree structure
|
java.lang.String |
getName()
Get the name
|
JxpPageParseException |
getParseException()
Return the pageParseException
|
JxpPageSource |
getSource()
Get the source
|
abstract java.lang.Object |
getStaticVariable(java.lang.String s) |
boolean |
hasParseError()
Return the hasParseError
|
abstract boolean |
hasStaticVariable(java.lang.String s) |
void |
setDocument(AstJxpDocument doc)
Set the doc
|
void |
setEncoding(java.lang.String encoding)
Set the encoding
|
void |
setParseException(JxpPageParseException pageParseException)
Set the pageParseException
|
private JxpPageSource _source
private java.lang.String _name
private AstJxpDocument _doc
private JxpPageParseException _pageParseException
private java.lang.String _encoding
public JxpPage(JxpPageSource source, java.lang.String name, java.lang.String encoding)
source
- the sourcename
- the namepublic final java.lang.String getName()
public final AstJxpDocument getJxpDocument() throws JxpPageSourceException
JxpPageSourceException
- if there's problem creating the document treepublic final JxpPageSource getSource()
public final AstJxpDocument getDocument()
public final void setDocument(AstJxpDocument doc)
doc
- The doc to set.public abstract java.lang.Object declareStaticVariable(java.lang.String s, java.lang.Object value)
s
- public abstract boolean hasStaticVariable(java.lang.String s)
s
- public abstract java.lang.Object getStaticVariable(java.lang.String s)
s
- public abstract java.lang.Object assignStaticVariable(java.lang.String name, java.lang.Object value)
name
- value
- public final boolean hasParseError()
public final void setParseException(JxpPageParseException pageParseException)
pageParseException
- The pageParseException to set.public final JxpPageParseException getParseException()
public final java.lang.String getEncoding()
public final void setEncoding(java.lang.String encoding)
encoding
- The encoding to set.