Package spoon.reflect.declaration
Interface CtTypedElement<T>
- All Superinterfaces:
Cloneable
,CtElement
,CtQueryable
,CtVisitable
,FactoryAccessor
,Serializable
,SourcePositionHolder
- All Known Subinterfaces:
CtAnnotation<A>
,CtAnnotationFieldAccess<T>
,CtAnnotationMethod<T>
,CtAnonymousExecutable
,CtArrayAccess<T,E>
,CtArrayRead<T>
,CtArrayWrite<T>
,CtAssignment<T,A>
,CtBinaryOperator<T>
,CtCatchVariable<T>
,CtCodeSnippetExpression<T>
,CtConditional<T>
,CtConstructor<T>
,CtConstructorCall<T>
,CtEnumValue<T>
,CtExecutable<R>
,CtExecutableReferenceExpression<T,E>
,CtExpression<T>
,CtField<T>
,CtFieldAccess<T>
,CtFieldRead<T>
,CtFieldWrite<T>
,CtInvocation<T>
,CtLambda<T>
,CtLiteral<T>
,CtLocalVariable<T>
,CtMethod<T>
,CtNewArray<T>
,CtNewClass<T>
,CtOperatorAssignment<T,A>
,CtParameter<T>
,CtRecordComponent
,CtResource<T>
,CtSuperAccess<T>
,CtSwitchExpression<T,S>
,CtTargetedExpression<T,E>
,CtTextBlock
,CtThisAccess<T>
,CtTypeAccess<A>
,CtTypePattern
,CtUnaryOperator<T>
,CtVariable<T>
,CtVariableAccess<T>
,CtVariableRead<T>
,CtVariableWrite<T>
- All Known Implementing Classes:
CtAnnotationFieldAccessImpl
,CtAnnotationImpl
,CtAnnotationMethodImpl
,CtAnonymousExecutableImpl
,CtArrayAccessImpl
,CtArrayReadImpl
,CtArrayWriteImpl
,CtAssignmentImpl
,CtBinaryOperatorImpl
,CtCatchVariableImpl
,CtCodeSnippetExpressionImpl
,CtConditionalImpl
,CtConstructorCallImpl
,CtConstructorImpl
,CtEnumValueImpl
,CtExecutableImpl
,CtExecutableReferenceExpressionImpl
,CtExpressionImpl
,CtFieldAccessImpl
,CtFieldImpl
,CtFieldReadImpl
,CtFieldWriteImpl
,CtInvocationImpl
,CtLambdaImpl
,CtLiteralImpl
,CtLocalVariableImpl
,CtMethodImpl
,CtNewArrayImpl
,CtNewClassImpl
,CtOperatorAssignmentImpl
,CtParameterImpl
,CtRecordComponentImpl
,CtSuperAccessImpl
,CtSwitchExpressionImpl
,CtTargetedExpressionImpl
,CtTextBlockImpl
,CtThisAccessImpl
,CtTypeAccessImpl
,CtTypePatternImpl
,CtUnaryOperatorImpl
,CtVariableAccessImpl
,CtVariableReadImpl
,CtVariableWriteImpl
,InvisibleArrayConstructorImpl
This abstract element defines a typed element.
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
Gets this element's type.<C extends CtTypedElement>
CsetType(CtTypeReference type)
Sets this element's type.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, updateAllParentsBelow
Methods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, map
Methods inherited from interface spoon.reflect.visitor.CtVisitable
accept
Methods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Method Details
-
getType
CtTypeReference<T> getType()Gets this element's type. -
setType
Sets this element's type.
-