public static final class Java.PackageMemberClassDeclaration extends Java.NamedClassDeclaration implements Java.PackageMemberTypeDeclaration
implementedTypes, name, optionalExtendedType, optionalTypeParameters
constructors, variableDeclaratorsAndInitializers
anonymousClassCount, localClassCount
Constructor and Description |
---|
PackageMemberClassDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.TypeDeclarationVisitor visitor)
Invokes the '
visit...() ' method of Visitor.TypeDeclarationVisitor for the concrete Java.TypeDeclaration type. |
String |
getClassName()
Determines the effective class name, e.g.
|
Java.CompilationUnit |
getDeclaringCompilationUnit() |
void |
setDeclaringCompilationUnit(Java.CompilationUnit declaringCompilationUnit)
Sets the
Java.CompilationUnit in which this top-level type is declared. |
getDocComment, getName, getOptionalTypeParameters, hasDeprecatedDocTag, toString
addConstructor, addFieldDeclaration, addInitializer, defineSyntheticField
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, invalidateMethodCaches, setEnclosingScope, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, getOptionalTypeParameters
createAnonymousClassName, createLocalTypeName, getAnnotations, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags
getLocation, throwCompileException
getEnclosingScope
public PackageMemberClassDeclaration(Location location, String optionalDocComment, Java.Modifiers modifiers, String name, Java.TypeParameter[] optionalTypeParameters, Java.Type optionalExtendedType, Java.Type[] implementedTypes) throws CompileException
CompileException
public void setDeclaringCompilationUnit(Java.CompilationUnit declaringCompilationUnit)
Java.PackageMemberTypeDeclaration
Java.CompilationUnit
in which this top-level type is declared.setDeclaringCompilationUnit
in interface Java.PackageMemberTypeDeclaration
public Java.CompilationUnit getDeclaringCompilationUnit()
getDeclaringCompilationUnit
in interface Java.PackageMemberTypeDeclaration
Java.CompilationUnit
in which this top-level type is declared.public String getClassName()
Java.TypeDeclaration
getClassName
in interface Java.TypeDeclaration
public void accept(Visitor.TypeDeclarationVisitor visitor)
Java.TypeDeclaration
visit...()
' method of Visitor.TypeDeclarationVisitor
for the concrete Java.TypeDeclaration
type.accept
in interface Java.TypeDeclaration
Copyright © 2001–2016. All rights reserved.