public final class Union extends GoloElement
Modifier and Type | Method and Description |
---|---|
void |
accept(GoloIrVisitor visitor) |
boolean |
addValue(java.lang.String name,
java.util.Collection<java.lang.String> members) |
boolean |
addValue(UnionValue value) |
java.lang.String |
getName() |
PackageAndClass |
getPackageAndClass() |
java.util.Collection<UnionValue> |
getValues() |
protected void |
replaceElement(GoloElement original,
GoloElement newElement) |
void |
setModuleName(PackageAndClass module) |
Union |
value(java.lang.String name,
java.lang.String... members) |
void |
walk(GoloIrVisitor visitor) |
cantConvert, cantReplace, cantReplace, doesNotContain, getASTNode, getDocumentation, getLocalReferenceTable, getParentNode, getPositionInSourceCode, hasASTNode, makeParentOf, ofAST, replaceInParentBy, setASTNode, setParentNode
public java.lang.String getName()
public PackageAndClass getPackageAndClass()
public void setModuleName(PackageAndClass module)
public boolean addValue(java.lang.String name, java.util.Collection<java.lang.String> members)
public boolean addValue(UnionValue value)
public java.util.Collection<UnionValue> getValues()
public Union value(java.lang.String name, java.lang.String... members)
public void accept(GoloIrVisitor visitor)
accept
in class GoloElement
public void walk(GoloIrVisitor visitor)
walk
in class GoloElement
protected void replaceElement(GoloElement original, GoloElement newElement)
replaceElement
in class GoloElement