public class CtAssertImpl<T> extends CtStatementImpl implements CtAssert<T>
ERROR_MESSAGE_TO_STRING, LOGGER, parent
Constructor and Description |
---|
CtAssertImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
CtAssert<T> |
clone()
Clone the element which calls this method in a new object.
|
CtExpression<Boolean> |
getAssertExpression()
Gets the assert expression.
|
CtExpression<T> |
getExpression()
Gets the expression of the assertion if defined.
|
<A extends CtAssert<T>> |
setAssertExpression(CtExpression<Boolean> asserted)
Sets the assert expression.
|
<A extends CtAssert<T>> |
setExpression(CtExpression<T> value)
Sets the expression of the assertion.
|
getLabel, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, setLabel
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
getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
partiallyEvaluate
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
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public CtExpression<Boolean> getAssertExpression()
CtAssert
getAssertExpression
in interface CtAssert<T>
public <A extends CtAssert<T>> A setAssertExpression(CtExpression<Boolean> asserted)
CtAssert
setAssertExpression
in interface CtAssert<T>
public CtExpression<T> getExpression()
CtAssert
getExpression
in interface CtAssert<T>
public <A extends CtAssert<T>> A setExpression(CtExpression<T> value)
CtAssert
setExpression
in interface CtAssert<T>
public CtAssert<T> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtAssert<T>
clone
in interface CtCodeElement
clone
in interface CtStatement
clone
in interface CtElement
clone
in class CtStatementImpl
Copyright © 2007–2019 Inria. All rights reserved.