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. |
String |
createAnonymousClassName()
Creates a unique name for an anonymous class.
|
String |
createLocalTypeName(String localTypeName)
Creates a unique name for a local class or interface.
|
Java.Annotation[] |
getAnnotations() |
String |
getClassName()
Determines the effective class name, e.g.
|
Java.MemberTypeDeclaration |
getMemberTypeDeclaration(String name)
Return the member type with the given name.
|
Collection<Java.MemberTypeDeclaration> |
getMemberTypeDeclarations() |
Java.MethodDeclarator |
getMethodDeclaration(String name)
Return the first method declared with the given name.
|
List<Java.MethodDeclarator> |
getMethodDeclarations() |
short |
getModifierFlags() |
getLocation, throwCompileException
getEnclosingScope
short getModifierFlags()
Mod
Java.Annotation[] getAnnotations()
Java.TypeDeclaration
Java.MemberTypeDeclaration getMemberTypeDeclaration(String name)
null
if a member type with that name is not declaredCollection<Java.MemberTypeDeclaration> getMemberTypeDeclarations()
Java.TypeDeclaration
Java.MethodDeclarator getMethodDeclaration(String name)
null
if a method with this name is not declaredList<Java.MethodDeclarator> getMethodDeclarations()
Java.TypeDeclaration
, not including methods declared in
supertypesString getClassName()
String createLocalTypeName(String localTypeName)
String createAnonymousClassName()
void accept(Visitor.TypeDeclarationVisitor visitor)
visit...()
' method of Visitor.TypeDeclarationVisitor
for the concrete Java.TypeDeclaration
type.Copyright © 2001–2016. All rights reserved.