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

pack-priv final Class LiteralExpr

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

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
LiteralExpr(String
the literal expression content/value.
value
)

Creates a new literal expression node.

public
LiteralExpr(String
the literal expression content/value.
value
,
String
the namespace in which the expression exists.
namespace
)

Creates a new literal expression node.

Method Summary

Modifier and TypeMethod and Description
protected boolean
contextDependent()

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

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

protected String
protected String
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 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:
backPatchFalseListbackPatchTrueListcompiledesynthesizeevaluateAtCompileTimegetFalseListgetTrueListgetTypehasLastCallhasPositionCalllookupPrimopstartIteratorsynthesizetranslateDesynthesized

Field Detail

_namespaceback to summary
private final String _namespace
_valueback to summary
private final String _value

Constructor Detail

LiteralExprback to summary
public LiteralExpr(String value)

Creates a new literal expression node.

Parameters
value:String

the literal expression content/value.

LiteralExprback to summary
public LiteralExpr(String value, String namespace)

Creates a new literal expression node.

Parameters
value:String

the literal expression content/value.

namespace:String

the namespace in which the expression exists.

Method Detail

contextDependentback to summary
protected 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).

getNamespaceback to summary
protected String getNamespace()
getValueback to summary
protected String 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.

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.