Modifier and Type | Field and Description |
---|---|
private org.w3c.dom.Document |
dom
XML document
|
private int |
elementsCount
count of essential elements
|
private java.lang.String |
filename
output XML file name
|
private java.util.Stack |
includes
stack of include hints
|
private java.util.List |
list
ordered list of hints
|
private java.util.Stack |
parents
stack of DOM parents
|
ATTR_TAG_ARG_NAME, ATTR_TAG_ARG_POS, ATTR_TAG_ARG_USED, ATTR_TAG_ARG_VAL, ATTR_TAG_END_COL, ATTR_TAG_END_LINE, ATTR_TAG_FILE, ATTR_TAG_REF_COL, ATTR_TAG_REF_LINE, ATTR_TAG_REF_NAME, ATTR_TAG_REF_TYPE, ATTR_TAG_REF_VAL, ATTR_TAG_START_COL, ATTR_TAG_START_LINE, ATTR_TAG_SYM_NAME, ATTR_TAG_SYM_TYPE, ATTR_TAG_SYM_VAL, ELEM_TAG_ARG, ELEM_TAG_INCL, ELEM_TAG_REF, ELEM_TAG_ROOT, ELEM_TAG_SUBROOT, ELEM_TAG_SYM
Constructor and Description |
---|
Hints(java.lang.String filename)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createAndPushIncludeHint(IncludeHint ih)
Creates the include hint element.
|
void |
createArgumentHint(ArgumentHint ah)
Creates the argument hint element.
|
void |
createConstantSymbol(java.lang.String name,
Symbol b)
Creates the symbol hint element.
|
void |
createReferenceHint(ReferenceHint rh)
Creates the reference hint element.
|
java.util.List |
getHintsList()
Returns the hints list.
|
java.util.Stack |
getHintsStack()
Returns the hints stack.
|
void |
popAndCompleteIncludeHint(IncludeHint ih)
Completes the include hint element.
|
void |
save()
Saves the hints tree to the file.
|
private java.lang.String filename
private java.util.List list
private java.util.Stack includes
private org.w3c.dom.Document dom
private java.util.Stack parents
private int elementsCount
public Hints(java.lang.String filename) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException
filename
- hints file name or null
javax.xml.parsers.ParserConfigurationException
- Forwarded from XmlHelper.java.io.IOException
- Forwarded from XmlHelper.public java.util.List getHintsList()
public java.util.Stack getHintsStack()
public void createAndPushIncludeHint(IncludeHint ih)
ih
- IncludeHint
object to get the details from.public void popAndCompleteIncludeHint(IncludeHint ih)
ih
- IncludeHint
object to get the details from.public void createArgumentHint(ArgumentHint ah)
ah
- ArgumentHint
object to get the details from.public void createReferenceHint(ReferenceHint rh)
rh
- ReferenceHint
object to get the details from.public void createConstantSymbol(java.lang.String name, Symbol b)
name
- the symbol's nameb
- The symbol's value.public void save() throws java.io.IOException
java.io.IOException
- Forwarded from XmlHelper.