public class CtSynchronizedImpl extends CtStatementImpl implements CtSynchronized
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Constructor and Description |
---|
CtSynchronizedImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
CtSynchronized |
clone()
Clone the element which calls this method in a new object.
|
CtBlock<?> |
getBlock()
Gets the synchronized block.
|
CtExpression<?> |
getExpression()
Gets the expression that defines the monitored object if any.
|
<T extends CtSynchronized> |
setBlock(CtBlock<?> block)
Sets the synchronized block.
|
<T extends CtSynchronized> |
setExpression(CtExpression<?> expression)
Sets the expression that defines the monitored.
|
getLabel, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, setLabel
partiallyEvaluate
addAnnotation, addComment, asIterable, comment, 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, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
comment, getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
partiallyEvaluate
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
getFactory, setFactory
filterChildren, map, map
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public CtBlock<?> getBlock()
CtSynchronized
getBlock
in interface CtSynchronized
public CtExpression<?> getExpression()
CtSynchronized
getExpression
in interface CtSynchronized
public <T extends CtSynchronized> T setBlock(CtBlock<?> block)
CtSynchronized
setBlock
in interface CtSynchronized
public <T extends CtSynchronized> T setExpression(CtExpression<?> expression)
CtSynchronized
setExpression
in interface CtSynchronized
public CtSynchronized clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtStatement
clone
in interface CtSynchronized
clone
in interface CtElement
clone
in class CtStatementImpl
Copyright © 2007–2021 Inria. All rights reserved.