public static interface Java.TypeDeclaration extends Java.Locatable, Java.Scope
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.TypeDeclarationVisitor visitor)
Invokes the '
visit...() ' method of Visitor.TypeDeclarationVisitor for the concrete Java.TypeDeclaration type. |
java.lang.String |
createAnonymousClassName()
Creates a unique name for an anonymous class.
|
java.lang.String |
createLocalTypeName(java.lang.String localTypeName)
Creates a unique name for a local class or interface.
|
Java.Annotation[] |
getAnnotations() |
java.lang.String |
getClassName()
Determines the effective class name, e.g.
|
Java.MemberTypeDeclaration |
getMemberTypeDeclaration(java.lang.String name)
Return the member type with the given name.
|
java.util.Collection<Java.MemberTypeDeclaration> |
getMemberTypeDeclarations() |
Java.MethodDeclarator |
getMethodDeclaration(java.lang.String name)
Return the first method declared with the given name.
|
java.util.List<Java.MethodDeclarator> |
getMethodDeclarations() |
short |
getModifierFlags() |
getLocation, throwCompileException
getEnclosingScope
short getModifierFlags()
Mod
Java.Annotation[] getAnnotations()
Java.TypeDeclaration
Java.MemberTypeDeclaration getMemberTypeDeclaration(java.lang.String name)
null
if a member type with that name is not declaredjava.util.Collection<Java.MemberTypeDeclaration> getMemberTypeDeclarations()
Java.TypeDeclaration
Java.MethodDeclarator getMethodDeclaration(java.lang.String name)
null
if a method with this name is not declaredjava.util.List<Java.MethodDeclarator> getMethodDeclarations()
Java.TypeDeclaration
, not including methods declared in
supertypesjava.lang.String getClassName()
java.lang.String createLocalTypeName(java.lang.String localTypeName)
java.lang.String createAnonymousClassName()
void accept(Visitor.TypeDeclarationVisitor visitor)
visit...()
' method of Visitor.TypeDeclarationVisitor
for the concrete Java.TypeDeclaration
type.