public final class DeclaredFunctionType extends Object
| Modifier and Type | Method and Description |
|---|---|
JSType |
getFormalType(int argpos) |
NominalType |
getNominalType() |
int |
getOptionalArity() |
NominalType |
getReceiverType() |
int |
getRequiredArity() |
JSType |
getRestFormalsType() |
JSType |
getReturnType() |
NominalType |
getThisType() |
com.google.common.collect.ImmutableList<String> |
getTypeParameters() |
boolean |
hasRestFormals() |
boolean |
isGeneric() |
boolean |
isTypeVariableDefinedLocally(String tvar) |
static DeclaredFunctionType |
meet(Collection<DeclaredFunctionType> toMeet) |
DeclaredFunctionType |
substituteNominalGenerics(NominalType nt) |
FunctionType |
toFunctionType() |
String |
toString() |
DeclaredFunctionType |
withReceiverType(NominalType newReceiver) |
DeclaredFunctionType |
withTypeInfoFromSuper(DeclaredFunctionType superType,
boolean getsTypeInfoFromParentMethod) |
public FunctionType toFunctionType()
public JSType getFormalType(int argpos)
public int getRequiredArity()
public int getOptionalArity()
public boolean hasRestFormals()
public JSType getRestFormalsType()
public JSType getReturnType()
public NominalType getThisType()
public NominalType getNominalType()
public NominalType getReceiverType()
public boolean isGeneric()
public com.google.common.collect.ImmutableList<String> getTypeParameters()
public boolean isTypeVariableDefinedLocally(String tvar)
public DeclaredFunctionType withReceiverType(NominalType newReceiver)
public DeclaredFunctionType withTypeInfoFromSuper(DeclaredFunctionType superType, boolean getsTypeInfoFromParentMethod)
public DeclaredFunctionType substituteNominalGenerics(NominalType nt)
public static DeclaredFunctionType meet(Collection<DeclaredFunctionType> toMeet)
Copyright © 2009-2015 Google. All Rights Reserved.