public class FunctionT extends FunctionOrMethodT
Constants.ATT_STYLE_OLD attribute. An old-style definition
must also be annotated with the Constants.ATT_DEFINED
attribute.exceptions, name, parameters, result, varargs| Constructor and Description |
|---|
FunctionT(Type result)
Create a new function type.
|
FunctionT(Type result,
java.util.List<Type> parameters,
boolean varargs)
Create a new function type.
|
FunctionT(Type template,
Type result,
java.util.List<Type> parameters,
boolean varargs)
Create a new function type.
|
| Modifier and Type | Method and Description |
|---|---|
FunctionT |
copy()
Create a deep copy of this type.
|
boolean |
isFunction()
Determine whether this type is a function.
|
Type.Tag |
tag()
Get this type's tag.
|
FunctionT |
toFunction()
Get this type as a function.
|
equals, getExceptions, getName, getParameters, getResult, hashCode, isVarArgs, seal, setExceptions, setParameters, setResult, writeaddAttribute, annotate, attribute, attribute, attribute, attributes, cast, checkNotSealed, constant, constant, copy, deannotate, getAttribute, getAttribute, getConstant, getConstant, getLanguage, getLanguage, getLocation, getLocation, getScope, getScope, getShape, getShape, hasAlias, hasAnnotated, hasAttribute, hasAttribute, hasAttribute, hasAttribute, hasAttributes, hasConstant, hasConstant, hasEnum, hasEnumerator, hasError, hasInstantiated, hasLanguage, hasLanguage, hasLocation, hasLocation, hasParameterized, hasScope, hasScope, hasShape, hasShape, hasStructOrUnion, hasTag, hasTagged, hasVariable, hasWTag, isAlias, isAnnotated, isArray, isBoolean, isClass, isConcrete, isEnum, isEnumerator, isError, isFloat, isInstantiated, isInteger, isInterface, isInternal, isInternalParameter, isLabel, isMethod, isNamedParameter, isNumber, isPackage, isParameter, isParameterized, isPointer, isSealed, isStruct, isTuple, isUnion, isUnit, isVariable, isVariant, isVoid, isWildcard, isWrapped, language, locate, locate, mark, properties, removeAttribute, removeProperty, resolve, resolve, scope, seal, setLocation, setLocation, setProperty, shape, shape, toAlias, toAnnotated, toArray, toBoolean, toClass, toEnum, toEnumerator, toFloat, toInstantiated, toInteger, toInterface, toInternal, toInternalParameter, toLabel, toMethod, toNamedParameter, toNumber, toPackage, toParameter, toParameterized, toPointer, toStruct, toStructOrUnion, toTagged, toTuple, toUnion, toUnit, toVariable, toVariant, toVoid, toWildcard, toWrapped, trace, wtagadd, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getNode, getProperty, getString, getStringProperty, getTokenText, hasName, hasProperty, hasTraversal, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, remove, set, size, strip, toAnnotation, toList, toString, toTokenpublic FunctionT(Type result)
result - The result type.public FunctionT(Type result, java.util.List<Type> parameters, boolean varargs)
result - The result type.parameters - The list of parameter types.varargs - The flag for accepting a variable number of arguments.public FunctionT(Type template, Type result, java.util.List<Type> parameters, boolean varargs)
template - The type whose annotations to copy.result - The result type.parameters - The list of parameter types.varargs - The flag for accepting a variable number of arguments.public FunctionT copy()
Typepublic Type.Tag tag()
Typetag in class TypeType.wtag()public boolean isFunction()
TypeisFunction in class Typetrue if this type is a function.public FunctionT toFunction()
TypetoFunction in class TypeCopyright © 2014. All Rights Reserved.