public class CtCodeSnippetStatementImpl extends CtStatementImpl implements CtCodeSnippetStatement
logger
Constructor and Description |
---|
CtCodeSnippetStatementImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor.
|
<S extends CtStatement> |
compile()
Compiles this statement code snippet to produce the corresponding AST
statement.
|
String |
getValue()
Gets the textual value of the code.
|
void |
setValue(String value)
Sets the textual value of the code.
|
getLabel, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, replace, replace, setLabel
partiallyEvaluate
addAnnotation, compareTo, EMPTY_COLLECTION, EMPTY_LIST, EMPTY_SET, equals, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getDocComment, getElements, getFactory, getParent, getParent, getParentNoExceptions, getPosition, getReferencedTypes, getReferences, getSignature, hashCode, hasParent, isImplicit, isParentInitialized, isRootElement, removeAnnotation, replace, setAnnotations, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setRootElement, toString, updateAllParentsBelow
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
partiallyEvaluate
addAnnotation, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getDocComment, getElements, getParent, getParent, getPosition, getReferencedTypes, getReferences, getSignature, hasParent, isImplicit, isParentInitialized, isRootElement, removeAnnotation, replace, setAnnotations, setDocComment, setImplicit, setParent, setPosition, setPositions, setRootElement, updateAllParentsBelow
getFactory, setFactory
compareTo
public void accept(CtVisitor visitor)
CtElement
public String getValue()
CtCodeSnippet
getValue
in interface CtCodeSnippet
public void setValue(String value)
CtCodeSnippet
setValue
in interface CtCodeSnippet
public <S extends CtStatement> S compile() throws SnippetCompilationError
CtCodeSnippetStatement
compile
in interface CtCodeSnippetStatement
SnippetCompilationError
- when the current snippet is not valid Java codeCopyright © 2007–2014 Inria. All rights reserved.