|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.compiler.SyntaxTreeNode org.apache.xalan.xsltc.compiler.Instruction org.apache.xalan.xsltc.compiler.LiteralAttribute
final class LiteralAttribute
Field Summary | |
---|---|
private java.lang.String |
_name
|
private AttributeValue |
_value
|
Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
_attributes, _parent, _qname, Dummy, IndentIncrement, UNKNOWN_STYLESHEET_NODE_ID |
Constructor Summary | |
---|---|
LiteralAttribute(java.lang.String name,
java.lang.String value,
Parser parser,
SyntaxTreeNode parent)
Creates a new literal attribute (but does not insert it into the AST). |
Method Summary | |
---|---|
protected boolean |
contextDependent()
Returns true if this expression/instruction depends on the context. |
void |
display(int indent)
Displays the contents of this syntax tree node (to stdout). |
java.lang.String |
getName()
Return the name of the attribute |
AttributeValue |
getValue()
Return the value of the attribute |
private boolean |
hasBadChars(java.lang.String value)
Return true if at least one character in the String is considered to be a "bad" character. |
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
Translate this node into JVM bytecodes. |
Type |
typeCheck(SymbolTable stable)
Type check all the children of this node. |
Methods inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
addAttribute, addElement, addPrefixMapping, compileResultTree, dependentContents, displayContents, elementAt, elementCount, elements, getAttribute, getAttribute, getAttributes, getContents, getImportPrecedence, getLineNumber, getNodeIDForStylesheetNSLookup, getParent, getParser, getPrefixMapping, getQName, getStylesheet, getSymbolTable, getTemplate, getXSLTC, hasAttribute, hasContents, indent, isDummy, lastChild, lookupNamespace, lookupPrefix, parseChildren, parseContents, removeElement, reportError, reportWarning, setAttributes, setFirstElement, setLineNumber, setParent, setParser, setPrefixMapping, setQName, setQName, translateContents, typeCheckContents, updateScope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.String _name
private final AttributeValue _value
Constructor Detail |
---|
public LiteralAttribute(java.lang.String name, java.lang.String value, Parser parser, SyntaxTreeNode parent)
name
- the attribute name (incl. prefix) as a String.value
- the attribute value.parser
- the XSLT parser (wraps XPath parser).Method Detail |
---|
public void display(int indent)
SyntaxTreeNode
display
in class SyntaxTreeNode
indent
- Indentation level for syntax tree levels.public Type typeCheck(SymbolTable stable) throws TypeCheckError
Instruction
typeCheck
in class Instruction
stable
- The compiler/parser's symbol table
TypeCheckError
protected boolean contextDependent()
SyntaxTreeNode
contextDependent
in class SyntaxTreeNode
public void translate(ClassGenerator classGen, MethodGenerator methodGen)
Instruction
translate
in class Instruction
classGen
- BCEL Java class generatormethodGen
- BCEL Java method generatorprivate boolean hasBadChars(java.lang.String value)
public java.lang.String getName()
public AttributeValue getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |