FileDocCategorySizeDatePackage
TopLevelElement.javaAPI DocJava SE 6 API3065Tue Jun 10 00:22:30 BST 2008com.sun.org.apache.xalan.internal.xsltc.compiler

TopLevelElement

public class TopLevelElement extends SyntaxTreeNode

Fields Summary
protected Vector
_dependencies
Constructors Summary
Methods Summary
public voidaddDependency(com.sun.org.apache.xalan.internal.xsltc.compiler.TopLevelElement other)
Add a dependency with other top-level elements like variables, parameters or keys.

	if (_dependencies == null) {
	    _dependencies = new Vector();
	}
	if (!_dependencies.contains(other)) {
	    _dependencies.addElement(other);
	}
    
public com.sun.org.apache.bcel.internal.generic.InstructionListcompile(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen)
Translate this node into a fresh instruction list. The original instruction list is saved and restored.

	final InstructionList result, save = methodGen.getInstructionList();
	methodGen.setInstructionList(result = new InstructionList());
	translate(classGen, methodGen);
	methodGen.setInstructionList(save);
	return result;
    
public voiddisplay(int indent)

	indent(indent);
	Util.println("TopLevelElement");
	displayContents(indent + IndentIncrement);
    
public java.util.VectorgetDependencies()
Get the list of dependencies with other top-level elements like variables, parameteres or keys.

	return _dependencies;
    
public voidtranslate(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen)
Translate this node into JVM bytecodes.

	ErrorMsg msg = new ErrorMsg(ErrorMsg.NOT_IMPLEMENTED_ERR,
				    getClass(), this);
	getParser().reportError(FATAL, msg);
    
public com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypetypeCheck(com.sun.org.apache.xalan.internal.xsltc.compiler.SymbolTable stable)
Type check all the children of this node.


                 
          
	return typeCheckContents(stable);