@Immutable public final class Signature extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.List<Type> |
argTypes() |
void |
checkCompatibility(Type targetType,
java.lang.String ident,
java.util.List<Expression> args)
Check whether the list of expression in args is statically
compatible with this Signature.
|
void |
checkConstructorCompatibility(Type targetType,
java.util.List<Expression> args)
Check whether the list of expression in args is statically
compatible with this Signature.
|
void |
checkStaticCompatibility(Type targetType,
java.lang.String ident,
java.util.List<Expression> args)
Check whether the list of expression in args is statically
compatible with this Signature.
|
java.lang.String |
displayAsMethod() |
java.lang.String |
displayAsMethod(java.lang.String methodName) |
boolean |
equals(java.lang.Object obj) |
static Signature |
fromCall(Type type,
java.lang.String ident,
java.util.List<Expression> exprs) |
static Signature |
fromCallUsingTypes(Type type,
java.lang.String ident,
java.util.List<Type> types) |
static Signature |
fromConstructor(Type type,
java.util.List<Expression> exprs) |
static Signature |
fromConstructorUsingTypes(Type type,
java.util.List<Type> types) |
static Signature |
fromStaticCall(Type type,
java.lang.String ident,
java.util.List<Expression> exprs) |
static Signature |
fromStaticCallUsingTypes(Type type,
java.lang.String ident,
java.util.List<Type> types) |
int |
hashCode() |
static Signature |
make(Type rtype,
java.util.List<Type> types) |
Type |
returnType() |
java.lang.String |
signature() |
java.lang.String |
toString() |
public Type returnType()
public java.util.List<Type> argTypes()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String signature()
public java.lang.String displayAsMethod()
public java.lang.String displayAsMethod(java.lang.String methodName)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void checkCompatibility(Type targetType, java.lang.String ident, java.util.List<Expression> args)
java.lang.IllegalArgumentException
- if args is not compatible with
this.types.public void checkStaticCompatibility(Type targetType, java.lang.String ident, java.util.List<Expression> args)
java.lang.IllegalArgumentException
- if args is not compatible with
this.types.public void checkConstructorCompatibility(Type targetType, java.util.List<Expression> args)
java.lang.IllegalArgumentException
- if args is not compatible with
this.types.public static Signature fromCall(Type type, java.lang.String ident, java.util.List<Expression> exprs)
public static Signature fromCallUsingTypes(Type type, java.lang.String ident, java.util.List<Type> types)
public static Signature fromStaticCall(Type type, java.lang.String ident, java.util.List<Expression> exprs)
public static Signature fromStaticCallUsingTypes(Type type, java.lang.String ident, java.util.List<Type> types)
public static Signature fromConstructorUsingTypes(Type type, java.util.List<Type> types)
public static Signature fromConstructor(Type type, java.util.List<Expression> exprs)