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

pack-priv final Class ElementAvailableCall

extends FunctionCall
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.ConstantPoolGen, .PUSH, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .ErrorMsg, .MethodGenerator, .Type, .TypeCheckError, java.util.List

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.FunctionCall:
_thisArgumentEXSLT_COMMONEXSLT_DATETIMEEXSLT_MATHEXSLT_SETSEXSLT_STRINGSEXT_XALANEXT_XSLTCJAVA_EXT_XALANJAVA_EXT_XALAN_OLDJAVA_EXT_XSLTCNAMESPACE_FORMAT_CLASSNAMESPACE_FORMAT_CLASS_OR_PACKAGENAMESPACE_FORMAT_JAVANAMESPACE_FORMAT_PACKAGEXALAN_CLASSPACKAGE_NAMESPACE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
evaluateAtCompileTime()

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

Returns an object representing the compile-time evaluation of an expression.
public boolean
getResult()

Returns the result that this function will return

public void
translate(ClassGenerator
BCEL Java class generator
classGen
,
MethodGenerator
BCEL Java method generator
methodGen
)

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

Calls to 'element-available' are resolved at compile time since the namespaces declared in the stylsheet are not available at run time.
public Type
typeCheck(SymbolTable
The compiler/parser's symbol table
stable
)

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

Force the argument to this function to be a literal string.
Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.FunctionCall:
argumentargumentargumentCountgetClassNameFromUrigetNamegetSignaturegetSignaturegetSignatureisExtensionisStandardreplaceDashsetArgumentsetParsertoStringtranslateDesynthesizedtypeCheckArgstypeCheckConstructortypeCheckExternaltypeCheckStandard

Constructor Detail

ElementAvailableCallback to summary
public ElementAvailableCall(QName fname, List<Expression> arguments)

Method Detail

evaluateAtCompileTimeback to summary
public Object evaluateAtCompileTime()

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

Returns an object representing the compile-time evaluation of an expression. We are only using this for function-available and element-available at this time.

getResultback to summary
public boolean getResult()

Returns the result that this function will return

translateback to summary
public void translate(ClassGenerator classGen, MethodGenerator methodGen)

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

Calls to 'element-available' are resolved at compile time since the namespaces declared in the stylsheet are not available at run time. Consequently, arguments to this function must be literals.

Parameters
classGen:ClassGenerator

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

BCEL Java class generator

methodGen:MethodGenerator

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

BCEL Java method generator

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

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

Force the argument to this function to be a literal string.

Parameters
stable:SymbolTable

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

The compiler/parser's symbol table