public class FunctionType extends Object
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
appendTo(StringBuilder builder) |
JSType |
createConstructorObject() |
boolean |
equals(Object obj) |
JSType |
getFormalType(int argpos) |
int |
getMaxArity() |
int |
getMinArity() |
JSType |
getOuterVarPrecondition(String name) |
JSType |
getReturnType() |
JSType |
getTypeOfThis() |
List<String> |
getTypeParameters() |
int |
hashCode() |
FunctionType |
instantiateGenerics(Map<String,JSType> typeMap) |
FunctionType |
instantiateGenericsFromArgumentTypes(List<JSType> argTypes) |
boolean |
isConstructor() |
boolean |
isGeneric() |
boolean |
isInterfaceDefinition() |
boolean |
isLoose() |
boolean |
isQmarkFunction() |
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 JSType getFormalType(int argpos)
public JSType getReturnType()
public int getMinArity()
public int getMaxArity()
public JSType getTypeOfThis()
public JSType createConstructorObject()
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-2014 Google. All Rights Reserved.