Package spoon.reflect.declaration
Interface CtMultiTypedElement
- All Superinterfaces:
Cloneable,CtElement,CtQueryable,CtVisitable,FactoryAccessor,Serializable,SourcePositionHolder
- All Known Subinterfaces:
CtCatchVariable<T>
- All Known Implementing Classes:
CtCatchVariableImpl
Defined an element with several types.
-
Method Summary
Modifier and TypeMethodDescription<T extends CtMultiTypedElement>
TaddMultiType(CtTypeReference<?> ref) Adds a type for the element.List<CtTypeReference<?>>Gets all types of the element.booleanremoveMultiType(CtTypeReference<?> ref) Removes a type for the element.<T extends CtMultiTypedElement>
TsetMultiTypes(List<CtTypeReference<?>> types) Adds a type for the element.Methods inherited from interface spoon.reflect.declaration.CtElement
addAnnotation, addComment, asIterable, clone, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelowMethods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, mapMethods inherited from interface spoon.reflect.visitor.CtVisitable
acceptMethods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Method Details
-
addMultiType
Adds a type for the element. -
removeMultiType
Removes a type for the element. -
getMultiTypes
List<CtTypeReference<?>> getMultiTypes()Gets all types of the element. -
setMultiTypes
Adds a type for the element.
-