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

pack-priv final Class ApplyImports

extends Instruction
Class Inheritance
Imports
java.util.Enumeration, com.sun.org.apache.bcel.internal.generic.ConstantPoolGen, .INVOKESPECIAL, .INVOKEVIRTUAL, .InstructionList, .NEW, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .MethodGenerator, .Type, .TypeCheckError, .Util

Field Summary

Modifier and TypeField and Description
private QName
private int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
display(int
Indentation level for syntax tree levels.
indent
)

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

Displays the contents of this syntax tree node (to stdout).
private int
getMinPrecedence(int max)

Determine the lowest import precedence for any stylesheet imported or included by the stylesheet in which this <xsl:apply-imports/> element occured.

public boolean
hasWithParams()

Returns true if this <xsl:apply-imports/> element has parameters

public void
parseContents(Parser
reference to the XSLT parser
parser
)

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

Parse the attributes and contents of an <xsl:apply-imports/> element.
public void
translate(ClassGenerator
BCEL Java class generator
classGen
,
MethodGenerator
BCEL Java method generator
methodGen
)

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

Translate call-template.
public Type
typeCheck(SymbolTable
The compiler/parser's symbol table
stable
)

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

Type-check the attributes/contents of an <xsl:apply-imports/> element.

Field Detail

_modeNameback to summary
private QName _modeName
_precedenceback to summary
private int _precedence

Constructor Detail

ApplyImportsback to summary
pack-priv ApplyImports()

Method Detail

displayback to summary
public void display(int indent)

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

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

Displays the contents of this syntax tree node (to stdout). This method is intended for debugging _only_, and should be overridden by all syntax tree node implementations.

Parameters
indent:int

Indentation level for syntax tree levels.

getMinPrecedenceback to summary
private int getMinPrecedence(int max)

Determine the lowest import precedence for any stylesheet imported or included by the stylesheet in which this <xsl:apply-imports/> element occured. The templates that are imported by the stylesheet in which this element occured will all have higher import precedence than the integer returned by this method.

hasWithParamsback to summary
public boolean hasWithParams()

Returns true if this <xsl:apply-imports/> element has parameters

parseContentsback to summary
public void parseContents(Parser parser)

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

Parse the attributes and contents of an <xsl:apply-imports/> element.

Parameters
parser:Parser

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

reference to the XSLT parser

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

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

Translate call-template. A parameter frame is pushed only if some template in the stylesheet uses parameters.

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.Instruction.typeCheck.

Type-check the attributes/contents of an <xsl:apply-imports/> element.

Parameters
stable:SymbolTable

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

The compiler/parser's symbol table