public final class FunctionType extends Object
| Type | Property and Description |
|---|---|
FunctionType |
transformByCall |
public FunctionType transformByCallProperty
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 FunctionType transformByCallProperty()
public FunctionType transformByApplyProperty(JSTypes commonTypes)
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.