public abstract static class Java.AbstractTypeDeclaration extends Object implements Java.TypeDeclaration
Java.TypeDeclaration
.Modifier and Type | Field and Description |
---|---|
int |
anonymousClassCount
For naming anonymous classes.
|
int |
localClassCount
For naming local classes.
|
Constructor and Description |
---|
AbstractTypeDeclaration(Location location,
Java.Modifiers modifiers) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, getClassName
public int anonymousClassCount
public int localClassCount
public AbstractTypeDeclaration(Location location, Java.Modifiers modifiers)
public short getModifierFlags()
getModifierFlags
in interface Java.TypeDeclaration
Mod
public Java.Annotation[] getAnnotations()
getAnnotations
in interface Java.TypeDeclaration
Java.TypeDeclaration
public void setEnclosingScope(Java.Scope enclosingScope)
Java.TypeDeclaration
.public Java.Scope getEnclosingScope()
getEnclosingScope
in interface Java.Scope
null
public void invalidateMethodCaches()
resolvedType
. This is necessary when methods are added
during compilationpublic void addMemberTypeDeclaration(Java.MemberTypeDeclaration mcoid)
Java.MemberTypeDeclaration
to this type.public void addDeclaredMethod(Java.MethodDeclarator method)
Java.MethodDeclarator
to this type.public Collection<Java.MemberTypeDeclaration> getMemberTypeDeclarations()
getMemberTypeDeclarations
in interface Java.TypeDeclaration
Java.TypeDeclaration
public Java.MemberTypeDeclaration getMemberTypeDeclaration(String name)
Java.TypeDeclaration
getMemberTypeDeclaration
in interface Java.TypeDeclaration
null
if a member type with that name is not declaredpublic Java.MethodDeclarator getMethodDeclaration(String name)
Java.TypeDeclaration
getMethodDeclaration
in interface Java.TypeDeclaration
null
if a method with this name is not declaredpublic List<Java.MethodDeclarator> getMethodDeclarations()
getMethodDeclarations
in interface Java.TypeDeclaration
Java.TypeDeclaration
, not including methods declared in
supertypespublic String createLocalTypeName(String localTypeName)
Java.TypeDeclaration
createLocalTypeName
in interface Java.TypeDeclaration
public String createAnonymousClassName()
Java.TypeDeclaration
createAnonymousClassName
in interface Java.TypeDeclaration
public Location getLocation()
getLocation
in interface Java.Locatable
public void throwCompileException(String message) throws CompileException
Java.Locatable
CompileException
with the given message and this
object's location.throwCompileException
in interface Java.Locatable
message
- The message to reportCompileException
Copyright © 2001–2016. All rights reserved.