|
|||||||||||
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.Expression
org.apache.xalan.xsltc.compiler.Pattern
org.apache.xalan.xsltc.compiler.LocationPathPattern
Nested Class Summary |
Nested classes inherited from class 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 | |
LocationPathPattern()
|
Method Summary | |
int |
getAxis()
|
double |
getDefaultPriority()
|
abstract org.apache.xalan.xsltc.compiler.StepPattern |
getKernelPattern()
|
double |
getPriority()
Returns the priority of this pattern (section 5.5 in the XSLT spec). |
Template |
getTemplate()
|
abstract boolean |
isWildcard()
|
boolean |
noSmallerThan(LocationPathPattern other)
This method is used by the Mode class to prioritise patterns and template. |
abstract void |
reduceKernelPattern()
|
void |
setTemplate(Template template)
|
java.lang.String |
toString()
|
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
Translate this node into JVM bytecodes. |
Type |
typeCheck(org.apache.xalan.xsltc.compiler.SymbolTable stable)
Returns the type of a pattern, which is always a NodeType .
|
Methods inherited from class org.apache.xalan.xsltc.compiler.Pattern |
backPatchFalseList, backPatchTrueList, compile, desynthesize, evaluateAtCompileTime, getFalseList, getTrueList, getType, hasLastCall, hasPositionCall, lookupPrimop, startIterator, synthesize, translateDesynthesized |
Methods inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
display, getLineNumber, getParser, getStylesheet, parseContents |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LocationPathPattern()
Method Detail |
public Type typeCheck(org.apache.xalan.xsltc.compiler.SymbolTable stable) throws TypeCheckError
Pattern
NodeType
.
A NodeType
has a number of subtypes defined by
NodeType._type
corresponding to each type of node.
typeCheck
in class Pattern
TypeCheckError
public void translate(ClassGenerator classGen, MethodGenerator methodGen)
Pattern
translate
on a pattern, make sure that the node being
matched is on top of the stack. After calling translate
,
make sure to backpatch both true and false lists. True lists are the
default, in the sense that they always "fall through". If this
is not the intended semantics (e.g., see
AlternativePattern.translate(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator)
)
then a GOTO must be appended to the instruction list after calling
translate
.
translate
in class Pattern
public void setTemplate(Template template)
public Template getTemplate()
public final double getPriority()
Pattern
getPriority
in class Pattern
public double getDefaultPriority()
public boolean noSmallerThan(LocationPathPattern other)
public abstract org.apache.xalan.xsltc.compiler.StepPattern getKernelPattern()
public abstract void reduceKernelPattern()
public abstract boolean isWildcard()
public int getAxis()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |