polyglot.ext.j0.ast
Class ImportStaticMethod_c

java.lang.Object
  extended bypolyglot.ext.jl.ast.Node_c
      extended bypolyglot.ext.jl.ast.Import_c
          extended bypolyglot.ext.j0.ast.ImportStaticMethod_c
All Implemented Interfaces:
java.lang.Cloneable, Copy, Import, ImportStaticMethod, JL, Node, NodeOps

public class ImportStaticMethod_c
extends Import_c
implements ImportStaticMethod

An Import is an immutable representation of a Java import statement. It consists of the string representing the item being imported and the kind which is either indicating that a class is being imported, or that an entire package is being imported.


Nested Class Summary
 
Nested classes inherited from class polyglot.ast.Import
Import.Kind
 
Field Summary
 
Fields inherited from class polyglot.ext.jl.ast.Import_c
kind, name
 
Fields inherited from class polyglot.ext.jl.ast.Node_c
del, ext, position
 
Fields inherited from interface polyglot.ext.j0.ast.ImportStaticMethod
STATIC_METHOD
 
Fields inherited from interface polyglot.ast.Import
CLASS, PACKAGE
 
Constructor Summary
ImportStaticMethod_c(Position pos, java.lang.String name, java.util.List parameters)
           
 
Method Summary
 Node buildTypes(TypeBuilder tb)
          Build type objects for the import.
 java.util.List parameterTypes()
           
 void prettyPrint(CodeWriter w, PrettyPrinter tr)
          Write the import to an output file.
 java.lang.String toString()
           
 Node typeCheck(TypeChecker tc)
          Check that this method exists
 Node visitChildren(NodeVisitor v)
          Visit the children of the node.
 
Methods inherited from class polyglot.ext.jl.ast.Import_c
kind, kind, name, name
 
Methods inherited from class polyglot.ext.jl.ast.Node_c
addDecls, addMembers, addMembersEnter, addMembersOverride, buildTypesEnter, buildTypesOverride, childExpectedType, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, exceptionCheckOverride, ext, ext, ext, ext, init, node, position, position, print, printBlock, printSubStmt, throwTypes, translate, typeCheckEnter, typeCheckOverride, visit, visitChild, visitEdge, visitList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface polyglot.ast.Import
kind, kind, name, name
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList
 
Methods inherited from interface polyglot.ast.JL
init, node
 
Methods inherited from interface polyglot.ast.NodeOps
addDecls, addMembers, addMembersEnter, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, throwTypes, translate, typeCheckEnter
 
Methods inherited from interface polyglot.util.Copy
copy
 

Constructor Detail

ImportStaticMethod_c

public ImportStaticMethod_c(Position pos,
                            java.lang.String name,
                            java.util.List parameters)
Method Detail

parameterTypes

public java.util.List parameterTypes()

buildTypes

public Node buildTypes(TypeBuilder tb)
                throws SemanticException
Build type objects for the import.

Specified by:
buildTypes in interface NodeOps
Overrides:
buildTypes in class Import_c
Throws:
SemanticException

typeCheck

public Node typeCheck(TypeChecker tc)
               throws SemanticException
Check that this method exists

Specified by:
typeCheck in interface NodeOps
Overrides:
typeCheck in class Import_c
Throws:
SemanticException

toString

public java.lang.String toString()
Overrides:
toString in class Import_c

prettyPrint

public void prettyPrint(CodeWriter w,
                        PrettyPrinter tr)
Write the import to an output file.

Specified by:
prettyPrint in interface NodeOps
Overrides:
prettyPrint in class Import_c

visitChildren

public Node visitChildren(NodeVisitor v)
Description copied from interface: NodeOps
Visit the children of the node.

Specified by:
visitChildren in interface NodeOps
Overrides:
visitChildren in class Node_c