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()
Returns a type representing an instance of
this constructor,
or null if this is not a constructor. |
Iterable<TypeI> |
getParameterTypes() |
ObjectTypeI |
getPrototypeProperty() |
String |
getReferenceName()
For a constructor function, returns the name of the instances.
|
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()
Returns whether
this type represents a constructor. |
boolean |
hasProperties() |
void |
setSource(Node n) |
autobox, autoboxAndGetObject, containsArray, getDisplayName, getEnumeratedTypeOfEnumElement, getGreatestSubtypeWithProperty, getJSDocInfo, getUnionMembers, hasUninstantiatedTypeVariables, isBooleanValueType, isBottom, isBoxableScalar, isConstructor, isEnumElement, isEnumObject, isEquivalentTo, isFunctionType, isGenericObjectType, isInstanceofObject, isInterface, isLiteralObject, isNullable, isNullType, isNumberValueType, isObjectType, isPrototypeObject, isRecordType, isSomeUnknownType, isStringValueType, isStructuralInterface, isSubtypeOf, isSubtypeWithoutStructuralTyping, isTop, isTypeVariable, isUnionType, isUnknownType, isUnresolved, isUnresolvedOrResolvedUnknown, isVoidable, isVoidType, meetWith, restrictByNotNullOrUndefined, toMaybeFunctionType, toMaybeObjectTypeTypeI convertMethodToFunction()
boolean hasInstanceType()
this type represents a constructor.ObjectTypeI getInstanceType()
this constructor,
or null if this is not a constructor.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.