|
|||||||||
| 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.InterfaceDeclaration
| 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.InterfaceDeclaration(Scanner.Location location,
Java.Scope enclosingScope,
short modifiers,
java.lang.String name,
Java.Type[] extendedTypes)
|
|
| Method Summary | |
void |
addConstantDeclaration(Java.FieldDeclarator fd)
|
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.InterfaceDeclaration(Scanner.Location location,
Java.Scope enclosingScope,
short modifiers,
java.lang.String name,
Java.Type[] extendedTypes)
throws Parser.ParseException
| Method Detail |
public void addConstantDeclaration(Java.FieldDeclarator fd)
public IClass getSuperclass()
IClassgetSuperclass in class IClasspublic IClass[] getInterfaces()
throws Java.CompileException
IClassgetInterfaces in class IClasspublic boolean isPublic()
IClassisPublic in class IClasspublic boolean isFinal()
IClassisFinal in class IClassnet.janino.IClasstrue if subclassing is prohibitedpublic boolean isInterface()
IClassisInterface in class IClasspublic boolean isAbstract()
IClassisAbstract in class IClassnet.janino.IClasstrue if instantiation is prohibitedpublic IClass.IConstructor[] getDeclaredIConstructors()
IClassgetDeclaredIConstructors in class IClasspublic IClass.IField[] getDeclaredIFields()
IClassgetDeclaredIFields in class IClasspublic void compile(int debuggingInformation)
throws Java.CompileException
Java.ClassOrInterfaceDeclarationJava.generatedClassFiles.compile in class Java.ClassOrInterfaceDeclarationnet.janino.Java.ClassOrInterfaceDeclarationCompileException -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||