public class FunctionType extends Object
Modifier and Type | Field and Description |
---|---|
static FunctionType |
LOOSE_TOP_FUNCTION |
static FunctionType |
TOP_FUNCTION |
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) |
boolean |
isConstructor() |
boolean |
isGeneric() |
boolean |
isLoose() |
boolean |
isQmarkFunction() |
boolean |
isSubtypeOf(FunctionType other) |
boolean |
isTopFunction() |
String |
toString() |
public static final FunctionType TOP_FUNCTION
public static final FunctionType LOOSE_TOP_FUNCTION
public boolean isLoose()
public boolean isTopFunction()
public boolean isConstructor()
public boolean isQmarkFunction()
public JSType getFormalType(int argpos)
public JSType getReturnType()
public int getMinArity()
public int getMaxArity()
public JSType getTypeOfThis()
public JSType createConstructorObject()
public boolean isSubtypeOf(FunctionType other)
public boolean isGeneric()
public FunctionType instantiateGenerics(Map<String,JSType> typeMap)
public StringBuilder appendTo(StringBuilder builder)
Copyright © 2009–2014 Google. All rights reserved.