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>attributeDeclsOrderedHashSet<Decl>attrsCollection<AttributeDecl>ctorAttrsStringderivedFromNameList<? super DispatchMethod>dispatchMethodsList<OutputModelObject>extensionMembersOrderedHashSet<Decl>gettersList<OutputModelObject>interfacesbooleanprovideCopyFromOrderedHashSet<Decl>ruleContextDeclsOrderedHashSet<Decl>ruleContextListDeclsOrderedHashSet<Decl>signaturesOrderedHashSet<Decl>tokenDeclsOrderedHashSet<Decl>tokenListDeclsOrderedHashSet<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)protectedStructDecl(OutputModelFactory factory, Rule r, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDecl(Decl d)voidaddDecl(Attribute a)voidaddDecls(Collection<Attribute> attrList)voidaddDispatchMethods(Rule r)voidaddExtensionMember(OutputModelObject member)voidimplementInterface(OutputModelObject value)booleanisEmpty()-
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()
-
-