|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.janino.IClass | +--net.janino.Java.ClassOrInterfaceDeclaration | +--net.janino.Java.ClassDeclaration
Inner classes inherited from class net.janino.IClass |
IClass.IConstructor, IClass.IField, IClass.IInvocable, IClass.IMember, IClass.IMethod |
Fields inherited from class net.janino.Java.ClassOrInterfaceDeclaration |
declaredClassesAndInterfaces, declaredMethods, modifiers, name |
Fields inherited from class net.janino.IClass |
PACKAGE, PRIVATE, PROTECTED, PUBLIC |
Constructor Summary | |
Java.ClassDeclaration(Scanner.Location location,
Java.Scope enclosingScope,
short modifiers,
java.lang.String name,
Java.Type extendedType,
Java.Type[] implementedTypes)
|
Method Summary | |
void |
addClassVariableDeclaratorOrClassInitializer(Java.BlockStatement bs)
|
void |
addConstructor(Java.ConstructorDeclarator cd)
|
void |
addInstanceVariableDeclaratorOrInstanceInitializer(Java.BlockStatement bs)
|
void |
compile(int debuggingInformation)
Compile yourself. |
IClass.IConstructor[] |
getDeclaredIConstructors()
Returns all the constructors declared by the class represented by the type. |
IClass.IField[] |
getDeclaredIFields()
Returns the fields of a class or interface (but not inherited fields). Returns an empty array for an array, primitive type or "void". |
IClass[] |
getInterfaces()
Returns the interfaces implemented by the class. Returns the superinterfaces of the interface. Returns "Cloneable" and "Serializable" for arrays. Returns an empty array for primitive types and "void". |
IClass |
getSuperclass()
Returns the superclass of the class. Returns "null" for class "Object", interfaces, arrays, primitive types and "void". |
boolean |
isAbstract()
Whether the class may be instantiated (JVMS 4.1 access_flags) |
boolean |
isFinal()
Whether subclassing is allowed (JVMS 4.1 access_flags) |
boolean |
isInterface()
Returns "true" if this type represents an interface. |
boolean |
isPublic()
Whether the class may be accessed from outside its package (JVMS 4.1 access_flags) |
Methods inherited from class net.janino.Java.ClassOrInterfaceDeclaration |
addDeclaredMethod, compileError, getClassName, getComponentType, getDeclaredIClasses, getDeclaredIMethods, getDescriptor, getEnclosingScope, getLocation, isArray, isPrimitive, isPrimitiveNumeric, throwParseException, toString |
Methods inherited from class net.janino.IClass |
createArrayIClass, implementsInterface, isAssignableFrom, isSubclassOf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Java.ClassDeclaration(Scanner.Location location, Java.Scope enclosingScope, short modifiers, java.lang.String name, Java.Type extendedType, Java.Type[] implementedTypes) throws Parser.ParseException
Method Detail |
public void addConstructor(Java.ConstructorDeclarator cd)
public void addInstanceVariableDeclaratorOrInstanceInitializer(Java.BlockStatement bs)
public void addClassVariableDeclaratorOrClassInitializer(Java.BlockStatement bs)
public IClass getSuperclass() throws Java.CompileException
IClass
getSuperclass
in class IClass
public IClass[] getInterfaces() throws Java.CompileException
IClass
getInterfaces
in class IClass
public boolean isPublic()
IClass
isPublic
in class IClass
public boolean isFinal()
IClass
isFinal
in class IClass
net.janino.IClass
true
if subclassing is prohibitedpublic boolean isInterface()
IClass
isInterface
in class IClass
public boolean isAbstract()
IClass
isAbstract
in class IClass
net.janino.IClass
true
if instantiation is prohibitedpublic IClass.IConstructor[] getDeclaredIConstructors()
IClass
getDeclaredIConstructors
in class IClass
public IClass.IField[] getDeclaredIFields()
IClass
getDeclaredIFields
in class IClass
public void compile(int debuggingInformation) throws Java.CompileException
Java.ClassOrInterfaceDeclaration
Java.generatedClassFiles
.compile
in class Java.ClassOrInterfaceDeclaration
net.janino.Java.ClassOrInterfaceDeclaration
CompileException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |