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
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
Modifier and TypeMethodDescriptionclone()Overriding return type, a clone of a CtTextBlock returns a CtTextBlockMethods inherited from interface spoon.reflect.code.CtCodeElement
partiallyEvaluateMethods 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, updateAllParentsBelowMethods inherited from interface spoon.reflect.code.CtExpression
addTypeCast, getTypeCasts, setTypeCastsMethods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, mapMethods inherited from interface spoon.reflect.declaration.CtTypedElement
getType, setTypeMethods inherited from interface spoon.reflect.visitor.CtVisitable
acceptMethods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactoryMethods inherited from interface spoon.template.TemplateParameter
S
-
Method Details
-
clone
CtTextBlock clone()Overriding return type, a clone of a CtTextBlock returns a CtTextBlock- Specified by:
clonein interfaceCtCodeElement- Specified by:
clonein interfaceCtElement- Specified by:
clonein interfaceCtExpression<String>- Specified by:
clonein interfaceCtLiteral<String>
-