@Immutable public final class Signature extends Object
Modifier and Type | Method and Description |
---|---|
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() |
public Type returnType()
public String signature()
public String displayAsMethod()
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)
Copyright © 2017 Oracle. All rights reserved.