public class CtCodeSnippetExpressionImpl<T> extends CtExpressionImpl<T> implements CtCodeSnippetExpression<T>
logger
Constructor and Description |
---|
CtCodeSnippetExpressionImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor.
|
<E extends CtExpression<T>> |
compile()
Compiles this expression snippet to produce the corresponding AST expression.
|
String |
getValue()
Gets the textual value of the code.
|
void |
setValue(String value)
Sets the textual value of the code.
|
addTypeCast, getSubstitution, getType, getTypeCasts, S, setType, setTypeCasts
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, replace, setAnnotations, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setRootElement, toString, updateAllParentsBelow
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addTypeCast, getTypeCasts, setTypeCasts
partiallyEvaluate
getType, setType
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
getSubstitution, S
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 <E extends CtExpression<T>> E compile() throws SnippetCompilationError
CtCodeSnippetExpression
compile
in interface CtCodeSnippetExpression<T>
SnippetCompilationError
- when the current snippet is not valid Java code expressionCopyright © 2007–2014 Inria. All rights reserved.