|
janino.net | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.codehaus.janino.Java.AbstractTypeDeclaration
public abstract static class Java.AbstractTypeDeclaration
Abstract implementation of Java.TypeDeclaration
.
Field Summary | |
---|---|
int |
anonymousClassCount
For naming anonymous classes. |
int |
localClassCount
For naming local classes. |
Constructor Summary | |
---|---|
Java.AbstractTypeDeclaration(Location location,
Java.Modifiers modifiers)
|
Methods inherited from class java.lang. |
---|
, , , , , , , , , |
Methods inherited from interface org.codehaus.janino.Java.TypeDeclaration |
---|
accept, getClassName |
Field Detail |
---|
public int anonymousClassCount
public int localClassCount
Constructor Detail |
---|
public Java.AbstractTypeDeclaration(Location location, Java.Modifiers modifiers)
Method Detail |
---|
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 compilation
public void addMemberTypeDeclaration(Java.MemberTypeDeclaration mcoid)
Java.PackageMemberTypeDeclaration
to this type.
public void addDeclaredMethod(Java.MethodDeclarator method)
Java.MethodDeclarator
to this type.
public <Java.MemberTypeDeclaration> getMemberTypeDeclarations()
getMemberTypeDeclarations
in interface Java.TypeDeclaration
Java.TypeDeclaration
public Java.MemberTypeDeclaration getMemberTypeDeclaration( name)
Java.TypeDeclaration
getMemberTypeDeclaration
in interface Java.TypeDeclaration
null
if a member type with that name is not declaredpublic Java.MethodDeclarator getMethodDeclaration( name)
Java.TypeDeclaration
getMethodDeclaration
in interface Java.TypeDeclaration
null
if a method with this name is not declaredpublic <Java.MethodDeclarator> getMethodDeclarations()
getMethodDeclarations
in interface Java.TypeDeclaration
Java.TypeDeclaration
, not including methods declared in
supertypespublic createLocalTypeName( localTypeName)
Java.TypeDeclaration
createLocalTypeName
in interface Java.TypeDeclaration
public createAnonymousClassName()
Java.TypeDeclaration
createAnonymousClassName
in interface Java.TypeDeclaration
public Location getLocation()
getLocation
in interface Java.Locatable
public void throwCompileException( message) throws CompileException
Java.Locatable
CompileException
with the given message and this
object's location.
throwCompileException
in interface Java.Locatable
message
- The message to report
CompileException
public abstract toString()
in class
|
janino.net | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |