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 void
accept(Visitor.TypeDeclarationVisitor visitor)
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.lang.String
getClassName()
Determine the effective class name, e.g.Java.MemberTypeDeclaration
getMemberTypeDeclaration(java.lang.String name)
Return the member type with the given name.java.util.Collection
getMemberTypeDeclarations()
Java.MethodDeclarator
getMethodDeclaration(java.lang.String name)
Return the first method declared with the given name.java.util.List
getMethodDeclarations()
Java.ModifiersAndAnnotations
getModifiersAndAnnotations()
-
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:
null
if 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:
null
if 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)
-
-