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

pack-priv final Class AttributeValueTemplate

extends AttributeValue
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.ConstantPoolGen, .INVOKESPECIAL, .INVOKEVIRTUAL, .Instruction, .InstructionList, .NEW, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .ErrorMsg, .MethodGenerator, .Type, .TypeCheckError, java.util.Iterator, .List, .NoSuchElementException, .StringTokenizer

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Modifier and TypeField and Description
pack-priv static final String
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
parseAVTemplate(String text, Parser parser)

Two-pass parsing of ATVs.

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.AttributeValue:
create

Field Detail

DELIMITERback to summary
pack-priv static final String DELIMITER
IN_EXPRback to summary
pack-priv static final int IN_EXPR
IN_EXPR_DQUOTESback to summary
pack-priv static final int IN_EXPR_DQUOTES
IN_EXPR_SQUOTESback to summary
pack-priv static final int IN_EXPR_SQUOTES
OUT_EXPRback to summary
pack-priv static final int OUT_EXPR

Constructor Detail

AttributeValueTemplateback to summary
public AttributeValueTemplate(String value, Parser parser, SyntaxTreeNode parent)

Method Detail

parseAVTemplateback to summary
private void parseAVTemplate(String text, Parser parser)

Two-pass parsing of ATVs. In the first pass, double curly braces are replaced by one, and expressions are delimited using DELIMITER. The second pass splits up the resulting buffer into literal and non-literal expressions. Errors are reported during the first pass.

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.