Package org.codehaus.janino
Interface Java.TypeDeclaration
-
- All Superinterfaces:
Java.Locatable,Java.Scope
- All Known Subinterfaces:
Java.MemberTypeDeclaration,Java.NamedTypeDeclaration,Java.PackageMemberTypeDeclaration
- All Known Implementing Classes:
Java.AbstractTypeDeclaration,Java.AnonymousClassDeclaration,Java.ClassDeclaration,Java.InterfaceDeclaration,Java.LocalClassDeclaration,Java.MemberClassDeclaration,Java.MemberInterfaceDeclaration,Java.NamedClassDeclaration,Java.PackageMemberClassDeclaration,Java.PackageMemberInterfaceDeclaration
- Enclosing class:
- Java
public static interface Java.TypeDeclaration extends Java.Locatable, Java.Scope
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(Visitor.TypeDeclarationVisitor visitor)java.lang.StringcreateAnonymousClassName()Creates a unique name for an anonymous class.java.lang.StringcreateLocalTypeName(java.lang.String localTypeName)Creates a unique name for a local class or interface.java.lang.StringgetClassName()Determine the effective class name, e.g.Java.MemberTypeDeclarationgetMemberTypeDeclaration(java.lang.String name)Return the member type with the given name.java.util.CollectiongetMemberTypeDeclarations()Java.MethodDeclaratorgetMethodDeclaration(java.lang.String name)Return the first method declared with the given name.java.util.ListgetMethodDeclarations()Java.ModifiersAndAnnotationsgetModifiersAndAnnotations()-
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
Methods inherited from interface org.codehaus.janino.Java.Scope
getEnclosingScope
-
-
-
-
Method Detail
-
getModifiersAndAnnotations
Java.ModifiersAndAnnotations getModifiersAndAnnotations()
-
getMemberTypeDeclaration
Java.MemberTypeDeclaration getMemberTypeDeclaration(java.lang.String name)
Return the member type with the given name.- Returns:
nullif a member type with that name is not declared
-
getMemberTypeDeclarations
java.util.Collection getMemberTypeDeclarations()
-
getMethodDeclaration
Java.MethodDeclarator getMethodDeclaration(java.lang.String name)
Return the first method declared with the given name. (Does not honor inherited methods.)- Returns:
nullif a method with this name is not declared
-
getMethodDeclarations
java.util.List getMethodDeclarations()
-
getClassName
java.lang.String getClassName()
Determine the effective class name, e.g. "pkg.Outer$Inner".
-
createLocalTypeName
java.lang.String createLocalTypeName(java.lang.String localTypeName)
Creates a unique name for a local class or interface.
-
createAnonymousClassName
java.lang.String createAnonymousClassName()
Creates a unique name for an anonymous class.
-
accept
void accept(Visitor.TypeDeclarationVisitor visitor)
-
-