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

pack-priv final Class DocumentCall

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

Authors
Jacek Ambroziak, Morten Jorgensen

Field Summary

Modifier and TypeField and Description
private Expression
private Type
private Expression
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
DocumentCall(QName fname, List<Expression> arguments)

Default function call constructor

Method Summary

Modifier and TypeMethod and Description
public void
translate(ClassGenerator classGen, MethodGenerator methodGen)

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

Translates the document() function call to a call to LoadDocument()'s static method document().

public Type
typeCheck(SymbolTable stable)

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

Type checks the arguments passed to the document() function.

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

Field Detail

_arg1back to summary
private Expression _arg1
_arg1Typeback to summary
private Type _arg1Type
_arg2back to summary
private Expression _arg2

Constructor Detail

DocumentCallback to summary
public DocumentCall(QName fname, List<Expression> arguments)

Default function call constructor

Method Detail

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

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

Translates the document() function call to a call to LoadDocument()'s static method document().

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

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

Type checks the arguments passed to the document() function. The first argument can be any type (we must cast it to a string) and contains the URI of the document