public class FunctionType extends Object
Modifier and Type | Method and Description |
---|---|
StringBuilder |
appendTo(StringBuilder builder) |
JSType |
createConstructorObject(NominalType fnNominal) |
boolean |
equals(Object obj) |
JSType |
getFormalType(int argpos) |
JSType |
getInstanceTypeOfCtor() |
int |
getMaxArity() |
int |
getMinArity() |
JSType |
getOuterVarPrecondition(String name) |
JSType |
getReturnType() |
JSType |
getThisType() |
List<String> |
getTypeParameters() |
int |
hashCode() |
boolean |
hasRestFormals() |
FunctionType |
instantiateGenerics(Map<String,JSType> typeMap) |
FunctionType |
instantiateGenericsFromArgumentTypes(List<JSType> argTypes) |
boolean |
isConstructor() |
boolean |
isGeneric() |
boolean |
isInterfaceDefinition() |
boolean |
isLoose() |
boolean |
isOptionalArg(int i) |
boolean |
isQmarkFunction() |
boolean |
isRequiredArg(int i) |
boolean |
isSubtypeOf(FunctionType other) |
boolean |
isTopFunction() |
DeclaredFunctionType |
toDeclaredFunctionType() |
String |
toString() |
public boolean isLoose()
public boolean isTopFunction()
public boolean isConstructor()
public boolean isInterfaceDefinition()
public boolean isQmarkFunction()
public boolean hasRestFormals()
public JSType getFormalType(int argpos)
public JSType getReturnType()
public int getMinArity()
public int getMaxArity()
public boolean isRequiredArg(int i)
public boolean isOptionalArg(int i)
public JSType getInstanceTypeOfCtor()
public JSType getThisType()
public JSType createConstructorObject(NominalType fnNominal)
public DeclaredFunctionType toDeclaredFunctionType()
public boolean isSubtypeOf(FunctionType other)
public boolean isGeneric()
public FunctionType instantiateGenerics(Map<String,JSType> typeMap)
public FunctionType instantiateGenericsFromArgumentTypes(List<JSType> argTypes)
public StringBuilder appendTo(StringBuilder builder)
Copyright © 2009–2015 Google. All rights reserved.