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

pack-priv final Class SimpleAttributeValue

extends AttributeValue
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 String

Constructor Summary

AccessConstructor and Description
public
SimpleAttributeValue(String
the attribute value.
value
)

Creates a new simple attribute value.

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.
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
BCEL Java class generator
classGen
,
MethodGenerator
BCEL Java method generator
methodGen
)

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

Translate this attribute value into JVM bytecodes that pushes the attribute value onto the JVM's stack.
public Type
typeCheck(SymbolTable
The compiler/parser's symbol table
stable
)

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

Returns this attribute value's type (String).
Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.AttributeValue:
create

Field Detail

_valueback to summary
private String _value

Constructor Detail

SimpleAttributeValueback to summary
public SimpleAttributeValue(String value)

Creates a new simple attribute value.

Parameters
value:String

the attribute value.

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).

Returns:boolean

'true' if this node depends on the context.

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.

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.Expression.translate.

Translate this attribute value into JVM bytecodes that pushes the attribute value onto the JVM's stack.

Parameters
classGen:ClassGenerator

BCEL Java class generator

methodGen:MethodGenerator

BCEL Java method generator

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

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

Returns this attribute value's type (String).

Parameters
stable:SymbolTable

The compiler/parser's symbol table