public final class Struct extends GoloElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IMMUTABLE_FACTORY_METHOD |
Modifier and Type | Method and Description |
---|---|
void |
accept(GoloIrVisitor visitor) |
void |
addMember(java.lang.String name) |
java.util.Set<GoloFunction> |
createFactories() |
java.util.Set<java.lang.String> |
getMembers() |
java.lang.String |
getName() |
PackageAndClass |
getPackageAndClass() |
java.util.Set<java.lang.String> |
getPublicMembers() |
Struct |
members(java.util.Collection<java.lang.String> members) |
Struct |
members(java.lang.String... members) |
Struct |
ofAST(GoloASTNode node) |
protected void |
replaceElement(GoloElement original,
GoloElement newElement) |
void |
setModuleName(PackageAndClass module) |
void |
walk(GoloIrVisitor visitor) |
cantConvert, cantReplace, cantReplace, doesNotContain, getASTNode, getDocumentation, getLocalReferenceTable, getParentNode, getPositionInSourceCode, hasASTNode, makeParentOf, replaceInParentBy, setASTNode, setParentNode
public static final java.lang.String IMMUTABLE_FACTORY_METHOD
public Struct ofAST(GoloASTNode node)
ofAST
in class GoloElement
public java.lang.String getName()
public Struct members(java.lang.String... members)
public Struct members(java.util.Collection<java.lang.String> members)
public void addMember(java.lang.String name)
public PackageAndClass getPackageAndClass()
public void setModuleName(PackageAndClass module)
public java.util.Set<java.lang.String> getMembers()
public java.util.Set<java.lang.String> getPublicMembers()
public java.util.Set<GoloFunction> createFactories()
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