public static interface Java.TypeDeclaration extends Java.Annotatable, Java.Locatable, Java.Scope
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.TypeDeclarationVisitor<R,EX> 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.
|
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() |
getAnnotationsgetLocation, throwCompileExceptiongetEnclosingScopeshort getModifierFlags()
Mod@Nullable Java.MemberTypeDeclaration getMemberTypeDeclaration(String name)
null if a member type with that name is not declaredCollection<Java.MemberTypeDeclaration> getMemberTypeDeclarations()
Java.TypeDeclaration@Nullable 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()
@Nullable <R,EX extends Throwable> R accept(Visitor.TypeDeclarationVisitor<R,EX> visitor) throws EX extends Throwable
visit...()' method of Visitor.TypeDeclarationVisitor for the concrete Java.TypeDeclaration type.EX extends Throwable