public final class FunctionType extends Object
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
appendTo(StringBuilder builder) |
boolean |
equals(Object obj) |
JSType |
getConstructorObject() |
JSType |
getFormalType(int argpos) |
JSType |
getInstanceTypeOfCtor() |
int |
getMaxArity() |
int |
getMaxArityWithoutRestFormals() |
int |
getMinArity() |
JSType |
getOuterVarPrecondition(String name) |
JSType |
getRestFormalsType() |
JSType |
getReturnType() |
JSType |
getSuperPrototype() |
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 JSType getSuperPrototype()
public boolean isQmarkFunction()
public boolean hasRestFormals()
public JSType getRestFormalsType()
public JSType getFormalType(int argpos)
public JSType getReturnType()
public int getMinArity()
public int getMaxArity()
public int getMaxArityWithoutRestFormals()
public boolean isRequiredArg(int i)
public boolean isOptionalArg(int i)
public JSType getInstanceTypeOfCtor()
public JSType getThisType()
public JSType getConstructorObject()
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.