public final class ConstantStatement extends ExpressionStatement<ConstantStatement>
| Modifier and Type | Method and Description | 
|---|---|
void | 
accept(GoloIrVisitor visitor)
Accept the visitor. 
 | 
boolean | 
hasLocalDeclarations()
Checks if this expression has local variable declarations. 
 | 
static boolean | 
isLiteralValue(java.lang.Object v)  | 
static ConstantStatement | 
of(java.lang.Object o)
Creates a constant value. 
 | 
protected void | 
replaceElement(GoloElement<?> original,
              GoloElement<?> newElement)
Replace a child. 
 | 
protected ConstantStatement | 
self()  | 
java.lang.String | 
toString() | 
java.lang.Object | 
value()  | 
ConstantStatement | 
value(java.lang.Object v)  | 
ConstantStatement | 
with(java.lang.Object a)
Defines a variable declaration (assignment) local to this expression. 
 | 
call, clearDeclarations, declarationsancestor, ancestor, ancestorOfType, cantConvert, cantReplace, cantReplace, children, children, children, descendants, descendants, descendants, documentation, documentation, doesNotContain, enclosingModule, getLocalReferenceTable, hasParent, hasPosition, inheritedMetadata, makeParentOf, metadata, metadata, next, next, next, ofAST, parent, positionInSourceCode, positionInSourceCode, previous, previous, previous, replaceInParentBy, walkpublic static ConstantStatement of(java.lang.Object o)
public static boolean isLiteralValue(java.lang.Object v)
public java.lang.Object value()
public ConstantStatement value(java.lang.Object v)
protected ConstantStatement self()
self in class GoloElement<ConstantStatement>public ConstantStatement with(java.lang.Object a)
Always throws an exception since NamedArgument can't have a local declaration.
with in class ExpressionStatement<ConstantStatement>public boolean hasLocalDeclarations()
ExpressionStatementhasLocalDeclarations in class ExpressionStatement<ConstantStatement>public java.lang.String toString()
toString in class java.lang.Objectpublic void accept(GoloIrVisitor visitor)
 This method should only call the visitor visitXXXX method.
 The children of this node will be visited by the
 GoloElement.walk(GoloIrVisitor) method.
accept in class GoloElement<ConstantStatement>protected void replaceElement(GoloElement<?> original, GoloElement<?> newElement)
 Replace original with newElement if original is a child of this node
 and type matches.
replaceElement in class GoloElement<ConstantStatement>original - the original value to replace. Must be a child of this nodenewElement - the element to replace with. Type must match.GoloElement.cantReplace(), 
GoloElement.cantReplace(GoloElement, GoloElement), 
GoloElement.doesNotContain(GoloElement), 
GoloElement.cantConvert(String, Object)