|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.pfl.dynamic.codegen.spi.Signature
@Immutable public final class Signature
Represents the signature of a method, which is sometimes needed for selecting the correct method.
| Method Summary | |
|---|---|
List<Type> |
argTypes()
|
void |
checkCompatibility(Type targetType,
String ident,
List<Expression> args)
Check whether the list of expression in args is statically compatible with this Signature. |
void |
checkConstructorCompatibility(Type targetType,
List<Expression> args)
Check whether the list of expression in args is statically compatible with this Signature. |
void |
checkStaticCompatibility(Type targetType,
String ident,
List<Expression> args)
Check whether the list of expression in args is statically compatible with this Signature. |
String |
displayAsMethod()
|
String |
displayAsMethod(String methodName)
|
boolean |
equals(Object obj)
|
static Signature |
fromCall(Type type,
String ident,
List<Expression> exprs)
|
static Signature |
fromCallUsingTypes(Type type,
String ident,
List<Type> types)
|
static Signature |
fromConstructor(Type type,
List<Expression> exprs)
|
static Signature |
fromConstructorUsingTypes(Type type,
List<Type> types)
|
static Signature |
fromStaticCall(Type type,
String ident,
List<Expression> exprs)
|
static Signature |
fromStaticCallUsingTypes(Type type,
String ident,
List<Type> types)
|
int |
hashCode()
|
static Signature |
make(Type rtype,
List<Type> types)
|
Type |
returnType()
|
String |
signature()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Signature make(Type rtype,
List<Type> types)
public Type returnType()
public List<Type> argTypes()
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic String signature()
public String displayAsMethod()
public String displayAsMethod(String methodName)
public boolean equals(Object obj)
equals in class Object
public void checkCompatibility(Type targetType,
String ident,
List<Expression> args)
IllegalArgumentException - if args is not compatible with
this.types.
public void checkStaticCompatibility(Type targetType,
String ident,
List<Expression> args)
IllegalArgumentException - if args is not compatible with
this.types.
public void checkConstructorCompatibility(Type targetType,
List<Expression> args)
IllegalArgumentException - if args is not compatible with
this.types.
public static Signature fromCall(Type type,
String ident,
List<Expression> exprs)
public static Signature fromCallUsingTypes(Type type,
String ident,
List<Type> types)
public static Signature fromStaticCall(Type type,
String ident,
List<Expression> exprs)
public static Signature fromStaticCallUsingTypes(Type type,
String ident,
List<Type> types)
public static Signature fromConstructorUsingTypes(Type type,
List<Type> types)
public static Signature fromConstructor(Type type,
List<Expression> exprs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||