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

pack-priv final Class BooleanExpr

extends Expression
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.ConstantPoolGen, .GOTO, .InstructionList, .PUSH, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .MethodGenerator, .Type, .TypeCheckError

This class implements inlined calls to the XSLT standard functions true() and false().
Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Modifier and TypeField and Description
private boolean
Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.Expression:
_falseList_trueList_type

Constructor Summary

AccessConstructor and Description
public
BooleanExpr(boolean value)

Method Summary

Modifier and TypeMethod and Description
public boolean
contextDependent()

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

Returns true if this expression/instruction depends on the context.

public boolean
public String
toString()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.Expression.toString.

Returns a string representation of the object.

public void
translate(ClassGenerator classGen, MethodGenerator methodGen)

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

Translate this node into JVM bytecodes.

public void
translateDesynthesized(ClassGenerator classGen, MethodGenerator methodGen)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.Expression.translateDesynthesized.

Redefined by expressions of type boolean that use flow lists.

public Type
typeCheck(SymbolTable stable)

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

Type check all the children of this node.

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.Expression:
backPatchFalseListbackPatchTrueListcompiledesynthesizeevaluateAtCompileTimegetFalseListgetTrueListgetTypehasLastCallhasPositionCalllookupPrimopstartIteratorsynthesize

Field Detail

_valueback to summary
private boolean _value

Constructor Detail

BooleanExprback to summary
public BooleanExpr(boolean value)

Method Detail

contextDependentback to summary
public boolean contextDependent()

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

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

Returns true if this expression/instruction depends on the context. By default, every expression/instruction depends on the context unless it overrides this method. Currently used to determine if result trees are compiled using procedures or little DOMs (result tree fragments).

getValueback to summary
public boolean getValue()
toStringback to summary
public String toString()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.Expression.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.Expression.translate.

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

Translate this node into JVM bytecodes.

translateDesynthesizedback to summary
public void translateDesynthesized(ClassGenerator classGen, MethodGenerator methodGen)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.Expression.translateDesynthesized.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.Expression.translateDesynthesized.

Redefined by expressions of type boolean that use flow lists.

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

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

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

Type check all the children of this node.