public final class DeclaredFunctionType extends Object
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() |
com.google.common.collect.ImmutableList<String> |
getTypeParameters() |
String |
getTypeVariableDefinedLocally(String tvar) |
boolean |
hasRestFormals() |
boolean |
isGeneric() |
boolean |
isTypeVariableDefinedLocally(String tvar) |
static DeclaredFunctionType |
meet(Collection<DeclaredFunctionType> toMeet) |
DeclaredFunctionType |
substituteNominalGenerics(NominalType nt) |
FunctionType |
toFunctionType() |
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 com.google.common.collect.ImmutableList<String> getTypeParameters()
public boolean isTypeVariableDefinedLocally(String tvar)
public DeclaredFunctionType withReceiverType(JSType newReceiverType)
public DeclaredFunctionType withTypeInfoFromSuper(DeclaredFunctionType superType, boolean getsTypeInfoFromParentMethod)
public DeclaredFunctionType substituteNominalGenerics(NominalType nt)
public static DeclaredFunctionType meet(Collection<DeclaredFunctionType> toMeet)
Copyright © 2009–2023 Google. All rights reserved.