Package org.codehaus.janino
Interface Java.PackageMemberTypeDeclaration
- All Superinterfaces:
Java.Annotatable,Java.Locatable,Java.NamedTypeDeclaration,Java.Scope,Java.TypeDeclaration
- All Known Implementing Classes:
Java.PackageMemberAnnotationTypeDeclaration,Java.PackageMemberClassDeclaration,Java.PackageMemberEnumDeclaration,Java.PackageMemberInterfaceDeclaration
- Enclosing class:
Java
Represents a class or interface declaration on compilation unit level. These are called "package member types"
because they are immediate members of a package.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetDeclaringCompilationUnit(Java.CompilationUnit declaringCompilationUnit) Sets theJava.AbstractCompilationUnitin which this top-level type is declared.Methods inherited from interface org.codehaus.janino.Java.Annotatable
getAnnotationsMethods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileExceptionMethods inherited from interface org.codehaus.janino.Java.NamedTypeDeclaration
getName, getOptionalTypeParametersMethods inherited from interface org.codehaus.janino.Java.Scope
getEnclosingScopeMethods inherited from interface org.codehaus.janino.Java.TypeDeclaration
accept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations
-
Method Details
-
setDeclaringCompilationUnit
Sets theJava.AbstractCompilationUnitin which this top-level type is declared. -
getDeclaringCompilationUnit
Java.CompilationUnit getDeclaringCompilationUnit()- Returns:
- The
Java.AbstractCompilationUnitin which this top-level type is declared.
-
getAccess
Access getAccess()- Returns:
- The accessability declared for this top-level type
-