public final class DeclaredFunctionType
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
JSType |
getFormalType(int argpos) |
int |
getMaxArity() |
JSType |
getNominalType() |
int |
getOptionalArity() |
JSType |
getReceiverType() |
int |
getRequiredArity() |
JSType |
getRestFormalsType() |
JSType |
getReturnType() |
JSType |
getThisType() |
TypeParameters |
getTypeParameters() |
java.lang.String |
getTypeVariableDefinedLocally(java.lang.String tvar) |
boolean |
hasRestFormals() |
DeclaredFunctionType |
instantiateGenericsWithUnknown() |
boolean |
isAbstract() |
boolean |
isGeneric() |
boolean |
isTypeVariableDefinedLocally(java.lang.String tvar) |
static DeclaredFunctionType |
meet(java.util.Collection<DeclaredFunctionType> toMeet) |
DeclaredFunctionType |
substituteNominalGenerics(NominalType nt) |
FunctionType |
toFunctionType() |
java.lang.String |
toString() |
DeclaredFunctionType |
withReceiverType(JSType newReceiverType) |
DeclaredFunctionType |
withTypeInfoFromSuper(DeclaredFunctionType superType,
boolean getsTypeInfoFromParentMethod) |
public FunctionType toFunctionType()
public JSType getFormalType(int argpos)
public int getRequiredArity()
public int getOptionalArity()
public int getMaxArity()
public boolean hasRestFormals()
public JSType getRestFormalsType()
public JSType getReturnType()
public JSType getThisType()
public JSType getNominalType()
public JSType getReceiverType()
public boolean isGeneric()
public TypeParameters getTypeParameters()
public boolean isAbstract()
public boolean isTypeVariableDefinedLocally(java.lang.String tvar)
public java.lang.String getTypeVariableDefinedLocally(java.lang.String tvar)
public DeclaredFunctionType withReceiverType(JSType newReceiverType)
public DeclaredFunctionType withTypeInfoFromSuper(DeclaredFunctionType superType, boolean getsTypeInfoFromParentMethod)
public DeclaredFunctionType substituteNominalGenerics(NominalType nt)
public DeclaredFunctionType instantiateGenericsWithUnknown()
public static DeclaredFunctionType meet(java.util.Collection<DeclaredFunctionType> toMeet)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2018 Google. All Rights Reserved.