|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.util.Utils
at.dms.kjc.CMember
at.dms.kjc.CClass
at.dms.kjc.CBadClass
public class CBadClass
This class represents an undefined class (something that comes from a bad classfile) This class is not usable to anything, so it will sooner or later produce a comprehensive error.
Field Summary |
---|
Fields inherited from class at.dms.kjc.CClass |
---|
CLS_UNDEFINED |
Fields inherited from class at.dms.kjc.CMember |
---|
owner |
Fields inherited from class at.dms.util.Utils |
---|
EMPTY_LIST, getForLoopCallers |
Fields inherited from interface at.dms.kjc.Constants |
---|
CMP_VERSION, JAV_CLASS, JAV_CLONE, JAV_CLONEABLE, JAV_CONSTRUCTOR, JAV_ERROR, JAV_EXCEPTION, JAV_INIT, JAV_LENGTH, JAV_NAME_SEPARATOR, JAV_OBJECT, JAV_OUTER_THIS, JAV_RUNTIME, JAV_RUNTIME_EXCEPTION, JAV_STATIC_INIT, JAV_STRING, JAV_STRINGBUFFER, JAV_THIS, JAV_THROWABLE, OPE_BAND, OPE_BNOT, OPE_BOR, OPE_BSR, OPE_BXOR, OPE_EQ, OPE_GE, OPE_GT, OPE_LE, OPE_LNOT, OPE_LT, OPE_MINUS, OPE_NE, OPE_PERCENT, OPE_PLUS, OPE_POSTDEC, OPE_POSTINC, OPE_PREDEC, OPE_PREINC, OPE_SIMPLE, OPE_SL, OPE_SLASH, OPE_SR, OPE_STAR, TID_ARRAY, TID_BIT, TID_BOOLEAN, TID_BYTE, TID_CHAR, TID_CLASS, TID_DOUBLE, TID_FLOAT, TID_INT, TID_LONG, TID_SHORT, TID_VECTOR, TID_VOID, VECTOR_EMPTY |
Constructor Summary | |
---|---|
protected |
CBadClass()
|
|
CBadClass(String qualifiedName)
Constructs a class export from file |
Method Summary | |
---|---|
void |
collectAbstractMethods(Vector v)
collectAbstractMethods search for a matching method with the provided type parameters look in parent hierarchy as needed |
void |
collectInterfaceMethods(Vector v)
collectInterfaceMethods search for a matching method with the provided type parameters look in parent hierarchy as needed |
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(CBadClass other)
Clones all fields of this into |
boolean |
descendsFrom(CClass from)
descendsFrom |
void |
genClassFile(File destination)
Generate the code in a class file |
CMethod[] |
getAbstractMethods()
Returns a list of abstract methods |
CField |
getField(String ident)
Returns the field with the specified name. |
boolean |
isAccessible(CClass from)
Checks whether this type is accessible from the specified class (JLS 6.6). |
CClass |
lookupClass(CClass caller,
String name)
This can be used to see if a given class name is visible inside of this file. |
CField |
lookupField(String name)
lookupField search for a field look in parent hierarchy as needed |
CMethod |
lookupMethod(String name,
CType[] params)
lookupMethod search for a matching method with the provided type parameters look in parent hierarchy as needed |
CMethod[] |
lookupSuperMethod(String name,
CType[] params)
lookupSuperMethod search for a matching method with the provided type parameters look in parent hierarchy as needed |
Methods inherited from class at.dms.kjc.CMember |
---|
deepCloneInto, getField, getIdent, getJavaName, getMethod, getModifiers, getOwner, getPrefixName, isDeprecated, isFinal, isPrivate, isProtected, isPublic, isStatic, setModifiers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected CBadClass()
public CBadClass(String qualifiedName)
Method Detail |
---|
public boolean descendsFrom(CClass from)
descendsFrom
in class CClass
from
- an other CClass
public final CField getField(String ident)
CClass
getField
in class CClass
ident
- the name of the field
public CClass lookupClass(CClass caller, String name)
lookupClass
in class CClass
caller
- the class of the callername
- a TypeName (6.5.2)public CMethod lookupMethod(String name, CType[] params)
name
- method nameparams
- method parameters
UnpositionedError
- this error will be positioned soonpublic CMethod[] lookupSuperMethod(String name, CType[] params)
lookupSuperMethod
in class CClass
name
- method nameparams
- method parameters
UnpositionedError
- this error will be positioned soonpublic CField lookupField(String name)
name
- method name
UnpositionedError
- this error will be positioned soonpublic boolean isAccessible(CClass from)
CClass
isAccessible
in class CClass
public CMethod[] getAbstractMethods()
getAbstractMethods
in class CClass
public void collectInterfaceMethods(Vector v)
v
- method namepublic void collectAbstractMethods(Vector v)
v
- method namepublic void genClassFile(File destination)
destination
- public Object deepClone()
deepClone
in interface DeepCloneable
deepClone
in class CClass
protected void deepCloneInto(CBadClass other)
other
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |