Package org.antlr.v4.codegen.model.decl
Class StructDecl
- java.lang.Object
-
- org.antlr.v4.codegen.model.OutputModelObject
-
- org.antlr.v4.codegen.model.SrcOp
-
- org.antlr.v4.codegen.model.decl.Decl
-
- org.antlr.v4.codegen.model.decl.StructDecl
-
- Direct Known Subclasses:
AltLabelStructDecl
public class StructDecl extends Decl
This object models the structure holding all of the parameters, return values, local variables, and labels associated with a rule.
-
-
Field Summary
Fields Modifier and Type Field Description OrderedHashSet<Decl>
attributeDecls
OrderedHashSet<Decl>
attrs
Collection<AttributeDecl>
ctorAttrs
String
derivedFromName
List<? super DispatchMethod>
dispatchMethods
List<OutputModelObject>
extensionMembers
OrderedHashSet<Decl>
getters
List<OutputModelObject>
interfaces
boolean
provideCopyFrom
OrderedHashSet<Decl>
ruleContextDecls
OrderedHashSet<Decl>
ruleContextListDecls
OrderedHashSet<Decl>
signatures
OrderedHashSet<Decl>
tokenDecls
OrderedHashSet<Decl>
tokenListDecls
OrderedHashSet<Decl>
tokenTypeDecls
-
Fields inherited from class org.antlr.v4.codegen.model.decl.Decl
ctx, decl, escapedName, isLocal, name
-
Fields inherited from class org.antlr.v4.codegen.model.SrcOp
enclosingBlock, enclosingRuleRunction, uniqueID
-
Fields inherited from class org.antlr.v4.codegen.model.OutputModelObject
ast, factory
-
-
Constructor Summary
Constructors Modifier Constructor Description StructDecl(OutputModelFactory factory, Rule r)
protected
StructDecl(OutputModelFactory factory, Rule r, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDecl(Decl d)
void
addDecl(Attribute a)
void
addDecls(Collection<Attribute> attrList)
void
addDispatchMethods(Rule r)
void
addExtensionMember(OutputModelObject member)
void
implementInterface(OutputModelObject value)
boolean
isEmpty()
-
Methods inherited from class org.antlr.v4.codegen.model.SrcOp
getContextName, getOuterMostAltCodeBlock
-
-
-
-
Field Detail
-
derivedFromName
public String derivedFromName
-
provideCopyFrom
public boolean provideCopyFrom
-
attrs
public OrderedHashSet<Decl> attrs
-
getters
public OrderedHashSet<Decl> getters
-
ctorAttrs
public Collection<AttributeDecl> ctorAttrs
-
dispatchMethods
public List<? super DispatchMethod> dispatchMethods
-
interfaces
public List<OutputModelObject> interfaces
-
extensionMembers
public List<OutputModelObject> extensionMembers
-
signatures
public OrderedHashSet<Decl> signatures
-
tokenDecls
public OrderedHashSet<Decl> tokenDecls
-
tokenTypeDecls
public OrderedHashSet<Decl> tokenTypeDecls
-
tokenListDecls
public OrderedHashSet<Decl> tokenListDecls
-
ruleContextDecls
public OrderedHashSet<Decl> ruleContextDecls
-
ruleContextListDecls
public OrderedHashSet<Decl> ruleContextListDecls
-
attributeDecls
public OrderedHashSet<Decl> attributeDecls
-
-
Constructor Detail
-
StructDecl
public StructDecl(OutputModelFactory factory, Rule r)
-
StructDecl
protected StructDecl(OutputModelFactory factory, Rule r, String name)
-
-
Method Detail
-
addDispatchMethods
public void addDispatchMethods(Rule r)
-
addDecl
public void addDecl(Decl d)
-
addDecl
public void addDecl(Attribute a)
-
addDecls
public void addDecls(Collection<Attribute> attrList)
-
implementInterface
public void implementInterface(OutputModelObject value)
-
addExtensionMember
public void addExtensionMember(OutputModelObject member)
-
isEmpty
public boolean isEmpty()
-
-