public interface FunctionTypeI extends TypeI
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsArguments(List<? extends TypeI> argumentTypes)
Checks if a call to this function with the given list of arguments is valid.
|
TypeI |
convertMethodToFunction()
Creates a new function type B based on the original function type A.
|
Collection<ObjectTypeI> |
getAncestorInterfaces() |
ObjectTypeI |
getInstanceType() |
ObjectTypeI |
getPrototypeProperty() |
String |
getReferenceName() |
TypeI |
getReturnType() |
Node |
getSource()
Gets the AST Node where this function was defined.
|
List<? extends FunctionTypeI> |
getSubTypes()
Returns a list of types that are subtypes of this type.
|
TypeI |
getTypeOfThis()
Gets the type of
this in this function. |
boolean |
hasInstanceType() |
boolean |
hasProperties() |
void |
setSource(Node n) |
autobox, autoboxAndGetObject, containsArray, getDisplayName, getEnumeratedTypeOfEnumElement, getGreatestSubtypeWithProperty, getJSDocInfo, getUnionMembers, isBottom, isBoxableScalar, isConstructor, isEnumElement, isEnumObject, isEquivalentTo, isFunctionType, isInstanceofObject, isInterface, isNullable, isNullType, isObjectType, isPrototypeObject, isSomeUnknownType, isStructuralInterface, isSubtypeOf, isTop, isTypeVariable, isUnionType, isUnknownType, isUnresolved, isUnresolvedOrResolvedUnknown, isVoidable, isVoidType, meetWith, restrictByNotNullOrUndefined, toMaybeFunctionType, toMaybeObjectTypeTypeI convertMethodToFunction()
boolean hasInstanceType()
ObjectTypeI getInstanceType()
TypeI getReturnType()
String getReferenceName()
Node getSource()
List<? extends FunctionTypeI> getSubTypes()
TypeI getTypeOfThis()
this in this function.boolean hasProperties()
void setSource(Node n)
boolean acceptsArguments(List<? extends TypeI> argumentTypes)
Collection<ObjectTypeI> getAncestorInterfaces()
ObjectTypeI getPrototypeProperty()
Copyright © 2009-2017 Google. All Rights Reserved.