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

pack-priv final Class TransletOutput

extends Instruction
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.ConstantPoolGen, .INVOKESTATIC, .INVOKEVIRTUAL, .InstructionList, .PUSH, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .ErrorMsg, .MethodGenerator, .StringType, .Type, .TypeCheckError, .Util, jdk.xml.internal.JdkXmlFeatures

Author
Morten Jorgensen

Field Summary

Modifier and TypeField and Description
private boolean
private Expression

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
display(int indent)

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

Displays the contents of this <xsltc:output> element.

public void
parseContents(Parser parser)

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

Parse the contents of this <xsltc:output> element.

public void
translate(ClassGenerator classGen, MethodGenerator methodGen)

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

Compile code that opens the give file for output, dumps the contents of the element to the file, then closes the file.

public Type
typeCheck(SymbolTable stable)

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

Type checks the 'file' attribute (must be able to convert it to a str).

Field Detail

_appendback to summary
private boolean _append
_filenameback to summary
private Expression _filename

Constructor Detail

TransletOutputback to summary
pack-priv TransletOutput()

Method Detail

displayback to summary
public void display(int indent)

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

Displays the contents of this <xsltc:output> element.

parseContentsback to summary
public void parseContents(Parser parser)

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

Parse the contents of this <xsltc:output> element. The only attribute we recognise is the 'file' attribute that contains teh output filename.

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

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

Compile code that opens the give file for output, dumps the contents of the element to the file, then closes the file.

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

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

Type checks the 'file' attribute (must be able to convert it to a str).