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

pack-priv final Class AbsolutePathPattern

extends LocationPathPattern
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.BranchHandle, .ConstantPoolGen, .GOTO_W, .IF_ICMPEQ, .ILOAD, .INVOKEINTERFACE, .ISTORE, .InstructionHandle, .InstructionList, .LocalVariableGen, .PUSH, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .MethodGenerator, .Type, .TypeCheckError, .Util, com.sun.org.apache.xml.internal.dtm.DTM

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Modifier and TypeField and Description
private final RelativePathPattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public StepPattern
public boolean
public void
public void
setParser(Parser
The XSLT parser.
parser
)

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

Set this node's parser.
public String
toString()

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

Returns a string representation of the object.
public void
translate(ClassGenerator
BCEL Java class generator
classGen
,
MethodGenerator
BCEL Java method generator
methodGen
)

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

Translate this node into JVM bytecodes.
public Type
typeCheck(SymbolTable
The compiler/parser's symbol table
stable
)

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

Returns the type of a pattern, which is always a NodeType.
Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.LocationPathPattern:
getAxisgetDefaultPrioritygetPrioritygetTemplatenoSmallerThansetTemplate

Field Detail

_leftback to summary
private final RelativePathPattern _left

Constructor Detail

AbsolutePathPatternback to summary
public AbsolutePathPattern(RelativePathPattern left)

Method Detail

getKernelPatternback to summary
public StepPattern getKernelPattern()

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

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.

Parameters
parser:Parser

The XSLT parser.

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.

Returns:String

a string representation of the object

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.

Parameters
classGen:ClassGenerator

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

BCEL Java class generator

methodGen:MethodGenerator

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

BCEL Java method generator

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.

Parameters
stable:SymbolTable

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

The compiler/parser's symbol table