|
||||||||||
| 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.CBinaryMethod
public class CBinaryMethod
This class represents a loaded (already compiled) class method.
| 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 |
CBinaryMethod()
|
|
CBinaryMethod(CClass owner,
MethodInfo methodInfo)
Constructs method |
| Method Summary | |
|---|---|
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(CBinaryMethod other)
Clones all fields of this into |
boolean |
equals(CMethod other)
equals search if two methods have same signature |
boolean |
hasSameSignature(CMethod other)
Has this method the same signature as the one given as argument ? NOTE: return type not considered |
boolean |
isApplicableTo(String ident,
CType[] actuals)
Is this method applicable to the specified invocation (JLS 15.12.2.1) ? |
boolean |
isMoreSpecificThan(CMethod other)
Is this method more specific than the one given as argument (JLS 15.12.2.2) ? |
String |
toString()
Returns a string representation of this method. |
| Methods inherited from class at.dms.kjc.CMethod |
|---|
checkOverriding, deepCloneInto, genCode, getMethod, getParameters, getReturnType, getSignature, getThrowables, isAbstract, isConstructor, isNative, setReturnType, setThrowables |
| 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 CBinaryMethod()
public CBinaryMethod(CClass owner,
MethodInfo methodInfo)
owner - the owner of this methodmethodInfo - a method info from a class file| Method Detail |
|---|
public boolean equals(CMethod other)
equals in class CMethodother - the other method
public boolean isApplicableTo(String ident,
CType[] actuals)
isApplicableTo in class CMethodident - method invocation nameactuals - method invocation argumentspublic boolean isMoreSpecificThan(CMethod other)
isMoreSpecificThan in class CMethodother - the method to compare topublic boolean hasSameSignature(CMethod other)
hasSameSignature in class CMethodother - the method to compare topublic String toString()
toString in class CMethodpublic Object deepClone()
deepClone in interface DeepCloneabledeepClone in class CMethodprotected void deepCloneInto(CBinaryMethod other)
other
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||