APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.compiler

pack-priv Class StepPattern

extends RelativePathPattern
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xalan.internal.xsltc.compiler.ProcessingInstructionPattern
Imports
com.sun.org.apache.bcel.internal.classfile.Field, com.sun.org.apache.bcel.internal.generic.ALOAD, .ASTORE, .BranchHandle, .ConstantPoolGen, .GETFIELD, .GOTO, .GOTO_W, .IFLT, .IFNE, .IFNONNULL, .IF_ICMPEQ, .IF_ICMPLT, .IF_ICMPNE, .ILOAD, .INVOKEINTERFACE, .INVOKESPECIAL, .ISTORE, .InstructionHandle, .InstructionList, .LocalVariableGen, .NEW, .PUSH, .PUTFIELD, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .MethodGenerator, .Type, .TypeCheckError, .Util, com.sun.org.apache.xml.internal.dtm.Axis, .DTM, java.util.List

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen, Erwin Bolwidt

Field Summary

Modifier and TypeField and Description
protected final int
private int
private boolean
protected final int
protected List<Predicate>
private double
private Step
private static final int
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
public
StepPattern(int axis, int nodeType, List<Predicate> predicates)

Method Summary

Modifier and TypeMethod and Description
private int
public int
public double
public StepPattern
private String
public int
protected boolean
public boolean
public void
public void
public StepPattern
public void
setPriority(double priority)

public String
toString()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern.toString.

Returns a string representation of the object.

public void
private void
private void
private void
private void
public Type
typeCheck(SymbolTable stable)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern.typeCheck.

Returns the type of a pattern, which is always a NodeType.

Field Detail

_axisback to summary
protected final int _axis
_contextCaseback to summary
private int _contextCase
_isEpsilonback to summary
private boolean _isEpsilon
_nodeTypeback to summary
protected final int _nodeType
_predicatesback to summary
protected List<Predicate> _predicates
_priorityback to summary
private double _priority

Hides com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern._priority.

_stepback to summary
private Step _step
GENERAL_CONTEXTback to summary
private static final int GENERAL_CONTEXT
NO_CONTEXTback to summary
private static final int NO_CONTEXT
SIMPLE_CONTEXTback to summary
private static final int SIMPLE_CONTEXT

Constructor Detail

StepPatternback to summary
public StepPattern(int axis, int nodeType, List<Predicate> predicates)

Method Detail

analyzeCasesback to summary
private int analyzeCases()
getAxisback to summary
public int getAxis()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern.getAxis.

getDefaultPriorityback to summary
public double getDefaultPriority()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern.getDefaultPriority.

getKernelPatternback to summary
public StepPattern getKernelPattern()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern.getKernelPattern.

getNextFieldNameback to summary
private String getNextFieldName()
getNodeTypeback to summary
public int getNodeType()
hasPredicatesback to summary
protected boolean hasPredicates()
isWildcardback to summary
public boolean isWildcard()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern.isWildcard.

reduceKernelPatternback to summary
public void reduceKernelPattern()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern.reduceKernelPattern.

setParserback to summary
public void setParser(Parser parser)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.setParser.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.setParser.

Set this node's parser. The parser (the XSLT parser) gives this syntax tree node access to the symbol table and XPath parser.

setPredicatesback to summary
public StepPattern setPredicates(List<Predicate> predicates)
setPriorityback to summary
public void setPriority(double priority)
toStringback to summary
public String toString()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

translateback to summary
public void translate(ClassGenerator classGen, MethodGenerator methodGen)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern.translate.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.Pattern.translate.

Translate this node into JVM bytecodes. Patterns are translated as boolean expressions with true/false lists. Before calling 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 com.sun.org.apache.xalan.internal.xsltc.compiler.AlternativePattern#translate) then a GOTO must be appended to the instruction list after calling translate.

translateGeneralContextback to summary
private void translateGeneralContext(ClassGenerator classGen, MethodGenerator methodGen)
translateKernelback to summary
private void translateKernel(ClassGenerator classGen, MethodGenerator methodGen)
translateNoContextback to summary
private void translateNoContext(ClassGenerator classGen, MethodGenerator methodGen)
translateSimpleContextback to summary
private void translateSimpleContext(ClassGenerator classGen, MethodGenerator methodGen)
typeCheckback to summary
public Type typeCheck(SymbolTable stable) throws TypeCheckError

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern.typeCheck.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.Pattern.typeCheck.

Returns the type of a pattern, which is always a NodeType. A NodeType has a number of subtypes defined by NodeType._type corresponding to each type of node.