|
||||||||||
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.CMethod
at.dms.kjc.CSourceMethod
public class CSourceMethod
This class represents an exported member of a class (fields)
Field Summary |
---|
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 |
CSourceMethod()
|
|
CSourceMethod(CClass owner,
int modifiers,
String ident,
CType returnType,
CType[] paramTypes,
CClassType[] exceptions,
boolean deprecated,
JBlock body)
Constructs a method export. |
Method Summary | |
---|---|
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(CSourceMethod other)
Clones all fields of this into |
CodeInfo |
genCode()
Generates JVM bytecode for this method. |
MethodInfo |
genMethodInfo(BytecodeOptimizer optimizer)
Generate the code in a class file |
JBlock |
getBody()
Accessor for the body of the method |
String |
getSignature()
|
boolean |
isUsed()
|
void |
setUsed()
|
Methods inherited from class at.dms.kjc.CMethod |
---|
checkOverriding, deepCloneInto, equals, genCode, getMethod, getParameters, getReturnType, getThrowables, hasSameSignature, isAbstract, isApplicableTo, isConstructor, isMoreSpecificThan, isNative, setReturnType, setThrowables, toString |
Methods inherited from class at.dms.kjc.CMember |
---|
deepCloneInto, getCClass, getField, getIdent, getJavaName, getModifiers, getOwner, getPrefixName, getQualifiedName, isAccessible, 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 CSourceMethod()
public CSourceMethod(CClass owner, int modifiers, String ident, CType returnType, CType[] paramTypes, CClassType[] exceptions, boolean deprecated, JBlock body)
owner
- the owner of this methodmodifiers
- the modifiers on this methodident
- the ident of this methodreturnType
- the return type of this methodparamTypes
- the parameter types of this methodexceptions
- a list of all exceptions in the throws listdeprecated
- is this method deprecatedbody
- the source codeMethod Detail |
---|
public JBlock getBody()
public boolean isUsed()
public void setUsed()
public MethodInfo genMethodInfo(BytecodeOptimizer optimizer)
optimizer
- the bytecode optimizer to usepublic String getSignature()
getSignature
in class CMethod
public CodeInfo genCode()
public Object deepClone()
deepClone
in interface DeepCloneable
deepClone
in class CMethod
protected void deepCloneInto(CSourceMethod other)
other
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |