Package spoon.reflect.code
Interface CtTextBlock
-
- All Superinterfaces:
Cloneable
,CtCodeElement
,CtElement
,CtExpression<String>
,CtLiteral<String>
,CtQueryable
,CtTypedElement<String>
,CtVisitable
,FactoryAccessor
,Serializable
,SourcePositionHolder
,TemplateParameter<String>
- All Known Implementing Classes:
CtTextBlockImpl
public interface CtTextBlock extends CtLiteral<String>
This code element defines a Text Block String Literal.String example = """ Test String """;
The example above shows a TextBlock literal, in which the string is represented by CtTextBlock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CtTextBlock
clone()
Overriding return type, a clone of a CtTextBlock returns a CtTextBlock-
Methods inherited from interface spoon.reflect.code.CtCodeElement
partiallyEvaluate
-
Methods inherited from interface spoon.reflect.declaration.CtElement
addAnnotation, addComment, asIterable, 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.code.CtExpression
addTypeCast, getTypeCasts, setTypeCasts
-
Methods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, map
-
Methods inherited from interface spoon.reflect.declaration.CtTypedElement
getType, setType
-
Methods inherited from interface spoon.reflect.visitor.CtVisitable
accept
-
Methods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Methods inherited from interface spoon.template.TemplateParameter
S
-
-
-
-
Method Detail
-
clone
CtTextBlock clone()
Overriding return type, a clone of a CtTextBlock returns a CtTextBlock- Specified by:
clone
in interfaceCtCodeElement
- Specified by:
clone
in interfaceCtElement
- Specified by:
clone
in interfaceCtExpression<String>
- Specified by:
clone
in interfaceCtLiteral<String>
-
-