public class XmlTextInfo extends XmlTextInfoArg
Basically, this contains all the information needed to manufacture a piece of text out of the partial CST and XML trees at parse time that will be the actual value of text. It can have one of five forms:
| Constructor and Description |
|---|
XmlTextInfo()
Constructs an empty XmlTextInfoArg.
|
XmlTextInfo(int child,
int[] path,
java.lang.String attribute)
Constructs an XmlTextInfo with specified child position,
(possibly null) xml path, and a (possibly null) attribute name.
|
XmlTextInfo(int child,
IntArrayList path,
boolean isTerminal,
ArrayList textInfo,
java.lang.String attribute)
Constructs an XmlTextInfo with specified child position,
|
XmlTextInfo(int child,
IntArrayList path,
java.lang.String attribute)
Constructs an XmlTextInfo with specified child position,
(possibly null) xml path, and a (possibly null) attribute name.
|
XmlTextInfo(java.lang.String attribute)
Constructs an XmlTextInfo with specified attribute name.
|
XmlTextInfo(XmlSpecialForm form)
Constructs an XmlTextInfo with specified special
form.
|
XmlTextInfo(XmlTreePath xmlTreePath)
Constructs an XmlTextInfo with specified XmlTreePath.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSpecialForm()
isSpecialForm() returns true whenever
this is a special form.
|
boolean |
isXmlTreePath()
isXmlTreePath() returns true whenever
this is an XML tree path.
|
XmlSpecialForm |
specialForm()
Returns this XmlTextInfo's _specialForm.
|
java.lang.String |
toString()
Returns a String form of this XmlTextInfo.
|
attribute, child, hasAttribute, hasChild, hasPath, hasXmlTreePath, isLiteral, makeTextForm, path, setChild, setPath, setText, setXmlTreePath, text, xmlTreePathpublic XmlTextInfo()
public XmlTextInfo(XmlTreePath xmlTreePath)
public XmlTextInfo(int child,
int[] path,
java.lang.String attribute)
public XmlTextInfo(int child,
IntArrayList path,
java.lang.String attribute)
public XmlTextInfo(XmlSpecialForm form)
public XmlTextInfo(java.lang.String attribute)
public XmlTextInfo(int child,
IntArrayList path,
boolean isTerminal,
ArrayList textInfo,
java.lang.String attribute)
public boolean isSpecialForm()
public XmlSpecialForm specialForm()
public boolean isXmlTreePath()
public final java.lang.String toString()
toString in class XmlTextInfoArg