|
|||||||||
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
Inner classes inherited from class net.janino.IClass |
IClass.IConstructor, IClass.IField, IClass.IInvocable, IClass.IMember, IClass.IMethod |
Field Summary | |
protected java.util.List |
declaredClassesAndInterfaces
|
protected java.util.List |
declaredMethods
|
protected short |
modifiers
{@see Mod} |
protected java.lang.String |
name
Declared, not fully qualified name. |
Fields inherited from class net.janino.IClass |
PACKAGE, PRIVATE, PROTECTED, PUBLIC |
Constructor Summary | |
Java.ClassOrInterfaceDeclaration(Scanner.Location location,
Java.Scope enclosingScope,
short modifiers,
java.lang.String name)
|
Method Summary | |
void |
addDeclaredMethod(Java.MethodDeclarator method)
|
abstract void |
compile(int debuggingInformation)
Compile yourself. |
void |
compileError(java.lang.String message)
|
protected java.lang.String |
getClassName()
Determine the fully qualified name of this class or interface. |
IClass |
getComponentType()
Returns the component type of the array. Returns "null" for classes, interfaces, primitive types and "void". |
IClass[] |
getDeclaredIClasses()
Returns the classes and interfaces declared as members of the class (but not inherited classes and interfaces). Returns an empty array for an array, primitive type or "void". |
IClass.IMethod[] |
getDeclaredIMethods()
Returns the methods of the class or interface (but not inherited methods). Returns an empty array for an array, primitive type or "void". |
java.lang.String |
getDescriptor()
Returns the field descriptor for the type as defined by JVMS 4.3.2. |
Java.Scope |
getEnclosingScope()
|
Scanner.Location |
getLocation()
|
boolean |
isArray()
Returns "true" if this type represents an array. |
boolean |
isPrimitive()
Returns "true" if this type represents a primitive type or "void". |
boolean |
isPrimitiveNumeric()
Returns "true" if this type represents "byte", "short", "int", "long", "char", "float" or "double". |
void |
throwParseException(java.lang.String message)
|
java.lang.String |
toString()
|
Methods inherited from class net.janino.IClass |
createArrayIClass, getDeclaredIConstructors, getDeclaredIFields, getInterfaces, getSuperclass, implementsInterface, isAbstract, isAssignableFrom, isFinal, isInterface, isPublic, isSubclassOf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected short modifiers
protected java.lang.String name
protected final java.util.List declaredMethods
protected final java.util.List declaredClassesAndInterfaces
Constructor Detail |
public Java.ClassOrInterfaceDeclaration(Scanner.Location location, Java.Scope enclosingScope, short modifiers, java.lang.String name) throws Parser.ParseException
Method Detail |
public void addDeclaredMethod(Java.MethodDeclarator method)
public Java.Scope getEnclosingScope()
getEnclosingScope
in interface Java.Scope
net.janino.Java.Scope
protected java.lang.String getClassName()
public Scanner.Location getLocation()
getLocation
in interface Java.Locatable
public void throwParseException(java.lang.String message) throws Parser.ParseException
throwParseException
in interface Java.Locatable
public void compileError(java.lang.String message) throws Java.CompileException
compileError
in interface Java.Locatable
public IClass.IMethod[] getDeclaredIMethods()
IClass
getDeclaredIMethods
in class IClass
public IClass[] getDeclaredIClasses()
IClass
getDeclaredIClasses
in class IClass
public java.lang.String getDescriptor()
IClass
getDescriptor
in class IClass
public boolean isArray()
IClass
isArray
in class IClass
public IClass getComponentType()
IClass
getComponentType
in class IClass
public boolean isPrimitive()
IClass
isPrimitive
in class IClass
public boolean isPrimitiveNumeric()
IClass
isPrimitiveNumeric
in class IClass
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void compile(int debuggingInformation) throws Java.CompileException
Java.generatedClassFiles
.CompileException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |