public interface CtCodeSnippetStatement extends CtStatement, CtCodeSnippet
Modifier and Type | Method and Description |
---|---|
CtCodeSnippetStatement |
clone()
Clone the element which calls this method in a new object.
|
<S extends CtStatement> |
compile()
Compiles this statement code snippet to produce the corresponding AST
statement.
|
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
accept
filterChildren, map, map
getOriginalSourceFragment
getValue, setValue
<S extends CtStatement> S compile() throws SnippetCompilationError
SnippetCompilationHelper.compileStatement(CtCodeSnippetStatement, CtTypeReference)
SnippetCompilationError
- when the current snippet is not valid Java codeCtCodeSnippetStatement clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtElement
clone
in interface CtStatement
Copyright © 2007–2019 Inria. All rights reserved.