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

pack-priv final Class ProcessingInstructionPattern

extends StepPattern
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.BranchHandle, .ConstantPoolGen, .GOTO, .IFEQ, .IF_ICMPEQ, .INVOKEINTERFACE, .INVOKEVIRTUAL, .InstructionHandle, .InstructionList, .PUSH, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .MethodGenerator, .Type, .TypeCheckError, com.sun.org.apache.xml.internal.dtm.Axis, .DTM

Author
Morten Jorgensen

Field Summary

Modifier and TypeField and Description
private String
private boolean
Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.StepPattern:
_axis_nodeType_predicates

Constructor Summary

AccessConstructor and Description
public
ProcessingInstructionPattern(String name)

Handles calls with no parameter (current node is implicit parameter).

Method Summary

Modifier and TypeMethod and Description
public double
public boolean
public void
public String
toString()

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

Returns a string representation of the object.

public void
translate(ClassGenerator classGen, MethodGenerator methodGen)

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

Translate this node into JVM bytecodes.

public Type
typeCheck(SymbolTable stable)

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

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

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.StepPattern:
getAxisgetKernelPatterngetNodeTypehasPredicatessetParsersetPredicatessetPriority

Field Detail

_nameback to summary
private String _name
_typeCheckedback to summary
private boolean _typeChecked

Constructor Detail

ProcessingInstructionPatternback to summary
public ProcessingInstructionPattern(String name)

Handles calls with no parameter (current node is implicit parameter).

Method Detail

getDefaultPriorityback to summary
public double getDefaultPriority()

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

isWildcardback to summary
public boolean isWildcard()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.StepPattern.isWildcard.

reduceKernelPatternback to summary
public void reduceKernelPattern()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.StepPattern.reduceKernelPattern.

toStringback to summary
public String toString()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.StepPattern.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.StepPattern.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.

typeCheckback to summary
public Type typeCheck(SymbolTable stable) throws TypeCheckError

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.StepPattern.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.