|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.mjc.CUniverseMethodAnnotation
This class represents a universe annotation for a method. This includes purity and universe annotations for both parameters and return type.
| Field Summary | |
private static byte[] |
EMPTY
dummy value for empty parameter array. |
private byte[] |
paramConstants
the byte constants for the parameters. |
private boolean |
purity
the method's purity. |
private byte |
retTypeConstant
the byte constant for the return type. |
| Constructor Summary | |
CUniverseMethodAnnotation(boolean purity)
Construct a Universe method annotation for a method with only primitive parameter and return types. |
|
CUniverseMethodAnnotation(boolean purity,
byte retTypeConstant)
Construct a Universe method annotation from byte constants for a method with no or only primitive parameters. |
|
CUniverseMethodAnnotation(boolean purity,
byte retTypeConstant,
byte[] paramConstants)
Construct a Universe method annotation from byte constants. |
|
CUniverseMethodAnnotation(boolean purity,
byte[] paramConstants)
Construct a Universe method annotation from byte constants for a method with void or primitive return type. |
|
| Method Summary | |
CUniverseTypeAnnotation |
getParamAnnotation(int index)
Get the universe annotation for the i-th parameter. |
CUniverseTypeAnnotation |
getRettypeAnnotation()
Get the universe annotation for the return value. |
boolean |
isEmptyParam()
Check whether this is the dummy annotation for empty universe annotations. |
boolean |
isPure()
Return the method's purity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private boolean purity
private byte retTypeConstant
private byte[] paramConstants
private static final byte[] EMPTY
| Constructor Detail |
public CUniverseMethodAnnotation(boolean purity,
byte retTypeConstant,
byte[] paramConstants)
purity - the method's purityretTypeConstant - the return type constantparamConstants - the parameter constants (captured)
public CUniverseMethodAnnotation(boolean purity,
byte[] paramConstants)
purity - the method's purityparamConstants - the parameter constants (captured)
public CUniverseMethodAnnotation(boolean purity,
byte retTypeConstant)
purity - the method's purityretTypeConstant - the return type constantpublic CUniverseMethodAnnotation(boolean purity)
purity - the method's purity| Method Detail |
public boolean isPure()
public CUniverseTypeAnnotation getParamAnnotation(int index)
index - the parameter's indexpublic boolean isEmptyParam()
public CUniverseTypeAnnotation getRettypeAnnotation()
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||