public class MethodT extends FunctionOrMethodT
exceptions, name, parameters, result, varargs| Constructor and Description |
|---|
MethodT(Type result,
java.lang.String name,
java.util.List<Type> parameters,
boolean varargs,
java.util.List<Type> exceptions)
Create a new method type.
|
MethodT(Type template,
Type result,
java.lang.String name,
java.util.List<Type> parameters,
boolean varargs,
java.util.List<Type> exceptions)
Create a new method type.
|
| Modifier and Type | Method and Description |
|---|---|
MethodT |
copy()
Create a deep copy of this type.
|
boolean |
isMethod()
Determine whether this type is a method.
|
Type.Tag |
tag()
Get this type's tag.
|
MethodT |
toMethod()
Get this type as a method.
|
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, isFunction, isInstantiated, isInteger, isInterface, isInternal, isInternalParameter, isLabel, 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, toFunction, toInstantiated, toInteger, toInterface, toInternal, toInternalParameter, toLabel, 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 MethodT(Type result, java.lang.String name, java.util.List<Type> parameters, boolean varargs, java.util.List<Type> exceptions)
result - The result type.name - The name.parameters - The list of parameter types.varargs - The flag for accepting a variable number of
arguments.exceptions - The list of exceptions, which must not be
nullpublic MethodT(Type template, Type result, java.lang.String name, java.util.List<Type> parameters, boolean varargs, java.util.List<Type> exceptions)
template - The type whose annotations to copy.result - The result type.name - The name.parameters - The list of parameter types.varargs - The flag for accepting a variable number of
arguments.exceptions - The list of exceptions, which must not be
nullpublic MethodT copy()
Typepublic Type.Tag tag()
Typetag in class TypeType.wtag()public boolean isMethod()
TypeCopyright © 2014. All Rights Reserved.