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
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Visitor.TypeDeclarationVisitor visitor) Creates a unique name for an anonymous class.createLocalTypeName(String localTypeName) Creates a unique name for a local class or interface.Determine the effective class name, e.g.Return the member type with the given name.getMethodDeclaration(String name) Return the first method declared with the given name.Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileExceptionMethods inherited from interface org.codehaus.janino.Java.Scope
getEnclosingScope
-
Method Details
-
getModifiersAndAnnotations
Java.ModifiersAndAnnotations getModifiersAndAnnotations() -
getMemberTypeDeclaration
Return the member type with the given name.- Returns:
nullif a member type with that name is not declared
-
getMemberTypeDeclarations
Collection getMemberTypeDeclarations() -
getMethodDeclaration
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
List getMethodDeclarations() -
getClassName
String getClassName()Determine the effective class name, e.g. "pkg.Outer$Inner". -
createLocalTypeName
Creates a unique name for a local class or interface. -
createAnonymousClassName
String createAnonymousClassName()Creates a unique name for an anonymous class. -
accept
-