| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final AttributeValue |
| Access | Constructor and Description |
|---|---|
| public | LiteralAttribute(String
the attribute name (incl. prefix) as a String. name, String the attribute value. value, Parser the XSLT parser (wraps XPath parser). parser, SyntaxTreeNode parent)Creates a new literal attribute (but does not insert it into the AST). |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | contextDependent()
Overrides com. Returns true if this expression/instruction depends on the context. |
| public void | display(int indent)
Overrides com. Displays the contents of this syntax tree node (to stdout). |
| public String | |
| public AttributeValue | |
| private boolean | hasBadChars(String value)
Return true if at least one character in the String is considered to be a "bad" character. |
| public void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Overrides com. Translate this node into JVM bytecodes. |
| public Type | typeCheck(SymbolTable stable)
Overrides com. Type check all the children of this node. |
| _name | back to summary |
|---|---|
| private final String _name | |
| _value | back to summary |
|---|---|
| private final AttributeValue _value | |
| LiteralAttribute | back to summary |
|---|---|
| public LiteralAttribute(String name, String value, Parser parser, SyntaxTreeNode parent) Creates a new literal attribute (but does not insert it into the AST). | |
| contextDependent | back to summary |
|---|---|
| protected boolean contextDependent() Overrides com. Doc from com. Returns true if this expression/instruction depends on the context. By default, every expression/instruction depends on the context unless it overrides this method. Currently used to determine if result trees are compiled using procedures or little DOMs (result tree fragments). | |
| display | back to summary |
|---|---|
| public void display(int indent) Overrides com. Doc from com. Displays the contents of this syntax tree node (to stdout). This method is intended for debugging _only_, and should be overridden by all syntax tree node implementations. | |
| getName | back to summary |
|---|---|
| public String getName() Return the name of the attribute | |
| getValue | back to summary |
|---|---|
| public AttributeValue getValue() Return the value of the attribute | |
| hasBadChars | back to summary |
|---|---|
| private boolean hasBadChars(String value) Return true if at least one character in the String is considered to be a "bad" character. A bad character is one whose code is: less than 32 (a space), or greater than 126, or it is one of '<', '>', '&' or '\"'. This helps the serializer to decide whether the String needs to be escaped. | |
| translate | back to summary |
|---|---|
| public void translate(ClassGenerator classGen, MethodGenerator methodGen) Overrides com. Doc from com. Translate this node into JVM bytecodes. | |
| typeCheck | back to summary |
|---|---|
| public Type typeCheck(SymbolTable stable) throws TypeCheckError Overrides com. Doc from com. Type check all the children of this node. | |