|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.xml.JGLScript.ParseState
protected abstract class JGLScript.ParseState
Generic state object.
Field Summary | |
---|---|
String |
context
Context identification (for debugging & error messages only, may be null ). |
protected JGLScript.ParseState |
parent
Pointer to ancestor (FIFO). |
Constructor Summary | |
---|---|
JGLScript.ParseState()
Pushes new parsing state on the stack. |
Method Summary | |
---|---|
void |
endElement(String qName)
My element was finished. |
void |
characters(char[] ch,
int start,
int length)
Swallows internal characters. |
Object |
invokeMethod(String name,
Object[] args)
Invokes the given method of the class instance. |
void |
newInstance(Object[] args)
Checks whether the class instance was already created, if not, creates it using the given constructor. |
void |
pop()
Pops this state from the stack. |
void |
setText(int type,
String value)
Text from one of descendants.. |
void |
setValue(int type,
Object value)
Arbitrary value from one of descendants.. |
void |
startElement(String qName,
Attributes atts)
A new XML element is starting in my context.. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String context
null
).
protected JGLScript.ParseState parent
Constructor Detail |
---|
public JGLScript.ParseState()
Method Detail |
---|
public void characters(char[] ch, int start, int length)
public void startElement(String qName, Attributes atts)
public void endElement(String qName)
public void setText(int type, String value)
public void setValue(int type, Object value)
public void newInstance(Object[] args)
public Object invokeMethod(String name, Object[] args)
public void pop() throws SAXException
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |