|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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.TypeDeclarationModpublic Java.Annotation[] getAnnotations()
getAnnotations in interface Java.TypeDeclarationJava.TypeDeclarationpublic void setEnclosingScope(Java.Scope enclosingScope)
Java.TypeDeclaration.
public Java.Scope getEnclosingScope()
getEnclosingScope in interface Java.Scopenullpublic 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 Collection<Java.MemberTypeDeclaration> getMemberTypeDeclarations()
getMemberTypeDeclarations in interface Java.TypeDeclarationJava.TypeDeclarationpublic Java.MemberTypeDeclaration getMemberTypeDeclaration(String name)
Java.TypeDeclaration
getMemberTypeDeclaration in interface Java.TypeDeclarationnull if a member type with that name is not declaredpublic Java.MethodDeclarator getMethodDeclaration(String name)
Java.TypeDeclaration
getMethodDeclaration in interface Java.TypeDeclarationnull if a method with this name is not declaredpublic List<Java.MethodDeclarator> getMethodDeclarations()
getMethodDeclarations in interface Java.TypeDeclarationJava.TypeDeclaration, not including methods declared in
supertypespublic String createLocalTypeName(String localTypeName)
Java.TypeDeclaration
createLocalTypeName in interface Java.TypeDeclarationpublic String createAnonymousClassName()
Java.TypeDeclaration
createAnonymousClassName in interface Java.TypeDeclarationpublic Location getLocation()
getLocation in interface Java.Locatable
public void throwCompileException(String message)
throws CompileException
Java.LocatableCompileException with the given message and this
object's location.
throwCompileException in interface Java.Locatablemessage - The message to report
CompileExceptionpublic abstract String toString()
toString in class Object
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||