public abstract class GoloElement
extends java.lang.Object
Constructor and Description |
---|
GoloElement() |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(GoloIrVisitor visitor) |
protected static java.lang.RuntimeException |
cantConvert(java.lang.String expected,
java.lang.Object value) |
protected java.lang.RuntimeException |
cantReplace() |
protected java.lang.RuntimeException |
cantReplace(GoloElement original,
GoloElement replacement) |
protected java.lang.RuntimeException |
doesNotContain(GoloElement element) |
GoloASTNode |
getASTNode() |
java.lang.String |
getDocumentation() |
java.util.Optional<ReferenceTable> |
getLocalReferenceTable() |
java.util.Optional<GoloElement> |
getParentNode() |
PositionInSourceCode |
getPositionInSourceCode() |
boolean |
hasASTNode() |
void |
makeParentOf(GoloElement childElement) |
GoloElement |
ofAST(GoloASTNode node) |
protected abstract void |
replaceElement(GoloElement original,
GoloElement newElement) |
void |
replaceInParentBy(GoloElement newElement) |
void |
setASTNode(GoloASTNode node) |
protected void |
setParentNode(GoloElement parentElement) |
abstract void |
walk(GoloIrVisitor visitor) |
public void setASTNode(GoloASTNode node)
public GoloASTNode getASTNode()
public boolean hasASTNode()
public GoloElement ofAST(GoloASTNode node)
protected void setParentNode(GoloElement parentElement)
public java.util.Optional<GoloElement> getParentNode()
public void makeParentOf(GoloElement childElement)
protected java.lang.RuntimeException cantReplace()
protected java.lang.RuntimeException cantReplace(GoloElement original, GoloElement replacement)
protected java.lang.RuntimeException doesNotContain(GoloElement element)
protected static java.lang.RuntimeException cantConvert(java.lang.String expected, java.lang.Object value)
public void replaceInParentBy(GoloElement newElement)
public java.lang.String getDocumentation()
public PositionInSourceCode getPositionInSourceCode()
public java.util.Optional<ReferenceTable> getLocalReferenceTable()
public abstract void accept(GoloIrVisitor visitor)
public abstract void walk(GoloIrVisitor visitor)
protected abstract void replaceElement(GoloElement original, GoloElement newElement)