public class DeclaredFunctionType extends Object
Modifier and Type | Method and Description |
---|---|
JSType |
getFormalType(int argpos) |
NominalType |
getNominalType() |
int |
getOptionalArity() |
NominalType |
getReceiverType() |
int |
getRequiredArity() |
JSType |
getReturnType() |
NominalType |
getThisType() |
com.google.common.collect.ImmutableList<String> |
getTypeParameters() |
boolean |
hasRestFormals() |
boolean |
isGeneric() |
boolean |
isTypeVariableInScope(String tvar) |
static DeclaredFunctionType |
meet(Collection<DeclaredFunctionType> toMeet) |
FunctionType |
toFunctionType() |
String |
toString() |
DeclaredFunctionType |
withTypeInfoFromSuper(DeclaredFunctionType superType) |
public FunctionType toFunctionType()
public JSType getFormalType(int argpos)
public int getRequiredArity()
public int getOptionalArity()
public boolean hasRestFormals()
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 isTypeVariableInScope(String tvar)
public DeclaredFunctionType withTypeInfoFromSuper(DeclaredFunctionType superType)
public static DeclaredFunctionType meet(Collection<DeclaredFunctionType> toMeet)
Copyright © 2009–2017 Google. All rights reserved.