public class CtLiteralImpl<T> extends CtExpressionImpl<T> implements CtLiteral<T>
ERROR_MESSAGE_TO_STRING, LOGGER, parent
Constructor and Description |
---|
CtLiteralImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
CtLiteral<T> |
clone()
Clone the element which calls this method in a new object.
|
T |
getValue()
Gets the actual value of the literal (statically known).
|
<C extends CtLiteral<T>> |
setValue(T value)
Sets the actual value of the literal.
|
addTypeCast, getType, getTypeCasts, S, setType, setTypeCasts
partiallyEvaluate
addAnnotation, addComment, asIterable, delete, descendantIterator, emptyList, emptySet, equals, filterChildren, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getFactory, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hashCode, hasParent, isImplicit, isParentInitialized, map, map, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
addTypeCast, getTypeCasts, setTypeCasts
partiallyEvaluate
getType, setType
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, updateAllParentsBelow
getFactory, setFactory
filterChildren, map, map
getOriginalSourceFragment
S
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public T getValue()
CtLiteral
public <C extends CtLiteral<T>> C setValue(T value)
CtLiteral
public CtLiteral<T> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtExpression<T>
clone
in interface CtLiteral<T>
clone
in interface CtElement
clone
in class CtExpressionImpl<T>
Copyright © 2007–2019 Inria. All rights reserved.