|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xalan.xsltc.compiler.SyntaxTreeNode
org.apache.xalan.xsltc.compiler.Template
public final class Template
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.bcel.generic.InstructionConstants |
---|
org.apache.bcel.generic.InstructionConstants.Clinit |
Field Summary |
---|
Fields inherited from interface org.apache.bcel.generic.InstructionConstants |
---|
AALOAD, AASTORE, ACONST_NULL, ALOAD_0, ALOAD_1, ALOAD_2, ARETURN, ARRAYLENGTH, ASTORE_0, ASTORE_1, ASTORE_2, ATHROW, BALOAD, BASTORE, bla, CALOAD, CASTORE, D2F, D2I, D2L, DADD, DALOAD, DASTORE, DCMPG, DCMPL, DCONST_0, DCONST_1, DDIV, DMUL, DNEG, DREM, DRETURN, DSUB, DUP, DUP_X1, DUP_X2, DUP2, DUP2_X1, DUP2_X2, F2D, F2I, F2L, FADD, FALOAD, FASTORE, FCMPG, FCMPL, FCONST_0, FCONST_1, FCONST_2, FDIV, FMUL, FNEG, FREM, FRETURN, FSUB, I2B, I2C, I2D, I2F, I2L, I2S, IADD, IALOAD, IAND, IASTORE, ICONST_0, ICONST_1, ICONST_2, ICONST_3, ICONST_4, ICONST_5, ICONST_M1, IDIV, ILOAD_0, ILOAD_1, ILOAD_2, IMUL, INEG, INSTRUCTIONS, IOR, IREM, IRETURN, ISHL, ISHR, ISTORE_0, ISTORE_1, ISTORE_2, ISUB, IUSHR, IXOR, L2D, L2F, L2I, LADD, LALOAD, LAND, LASTORE, LCMP, LCONST_0, LCONST_1, LDIV, LMUL, LNEG, LOR, LREM, LRETURN, LSHL, LSHR, LSUB, LUSHR, LXOR, MONITORENTER, MONITOREXIT, NOP, POP, POP2, RETURN, SALOAD, SASTORE, SWAP, THIS |
Constructor Summary | |
---|---|
Template()
|
Method Summary | |
---|---|
void |
addParameter(org.apache.xalan.xsltc.compiler.Param param)
|
int |
compareTo(java.lang.Object template)
Compare this template to another. |
org.apache.bcel.generic.InstructionList |
compile(ClassGenerator classGen,
MethodGenerator methodGen)
Translate this node into a fresh instruction list. |
void |
disable()
|
boolean |
disabled()
|
void |
display(int indent)
Displays the contents of this syntax tree node (to stdout). |
org.apache.xalan.xsltc.compiler.QName |
getModeName()
|
org.apache.xalan.xsltc.compiler.QName |
getName()
|
java.util.Vector |
getParameters()
|
Pattern |
getPattern()
|
int |
getPosition()
|
double |
getPriority()
|
Stylesheet |
getStylesheet()
Get the Stylesheet node that represents the |
boolean |
hasParams()
|
boolean |
isNamed()
|
boolean |
isSimpleNamedTemplate()
|
boolean |
isSimplified()
|
void |
parseContents(Parser parser)
Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). |
void |
parseSimplified(Stylesheet stylesheet,
Parser parser)
When the parser realises that it is dealign with a simplified stylesheet it will create an empty Stylesheet object with the root element of the stylesheet (a LiteralElement object) as its only child. |
void |
setName(org.apache.xalan.xsltc.compiler.QName qname)
|
void |
setSimplified()
|
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
Translate this node into JVM bytecodes. |
Type |
typeCheck(org.apache.xalan.xsltc.compiler.SymbolTable stable)
Type check all the children of this node. |
Methods inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
getLineNumber, getParser |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Template()
Method Detail |
---|
public boolean hasParams()
public boolean isSimplified()
public void setSimplified()
public boolean isSimpleNamedTemplate()
public void addParameter(org.apache.xalan.xsltc.compiler.Param param)
public java.util.Vector getParameters()
public void disable()
public boolean disabled()
public double getPriority()
public int getPosition()
public boolean isNamed()
public Pattern getPattern()
public org.apache.xalan.xsltc.compiler.QName getName()
public void setName(org.apache.xalan.xsltc.compiler.QName qname)
public org.apache.xalan.xsltc.compiler.QName getModeName()
public int compareTo(java.lang.Object template)
public void display(int indent)
SyntaxTreeNode
indent
- Indentation level for syntax tree levels.public Stylesheet getStylesheet()
SyntaxTreeNode
getStylesheet
in class SyntaxTreeNode
public void parseContents(Parser parser)
SyntaxTreeNode
parseContents
in class SyntaxTreeNode
parser
- reference to the XSLT parserpublic void parseSimplified(Stylesheet stylesheet, Parser parser)
public Type typeCheck(org.apache.xalan.xsltc.compiler.SymbolTable stable) throws TypeCheckError
stable
- The compiler/parser's symbol table
TypeCheckError
public void translate(ClassGenerator classGen, MethodGenerator methodGen)
classGen
- BCEL Java class generatormethodGen
- BCEL Java method generatorpublic org.apache.bcel.generic.InstructionList compile(ClassGenerator classGen, MethodGenerator methodGen)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |