polyglot.ext.j0.ast
Class ImportStaticMethod_c
java.lang.Object
polyglot.ext.jl.ast.Node_c
polyglot.ext.jl.ast.Import_c
polyglot.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.
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.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 |
ImportStaticMethod_c
public ImportStaticMethod_c(Position pos,
java.lang.String name,
java.util.List parameters)
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