public class ParserAttribute extends GrammarElement
attributeType
must be set to a non-null value
before a parser attribute is passed to the compiler.Modifier and Type | Field and Description |
---|---|
protected String |
attributeType
The Java type of the parser attribute.
|
protected String |
code
The code block executed at parser start time to initialize the parser attribute.
|
displayName, location, name, type
Constructor and Description |
---|
ParserAttribute() |
Modifier and Type | Method and Description |
---|---|
<RT,E extends Exception> |
acceptVisitor(edu.umn.cs.melt.copper.compiletime.spec.grammarbeans.visitors.CopperASTBeanVisitor<RT,E> visitor) |
String |
getAttributeType() |
String |
getCode() |
boolean |
isComplete()
Checks that a grammar object has had values assigned to all its required elements and parameters.
|
void |
setAttributeType(String attributeType) |
void |
setCode(String code) |
Set<String> |
whatIsMissing() |
getDisplayName, getLocation, getName, getType, hasDisplayName, setDisplayName, setLocation, setName, setName
protected String attributeType
protected String code
public boolean isComplete()
CopperASTBean
name
and location
to be set, and may impose
additional individual requirements.isComplete
in class CopperASTBean
true
iff all required elements and parameters have been set to non-null values.public Set<String> whatIsMissing()
whatIsMissing
in class CopperASTBean
public String getAttributeType()
attributeType
public void setAttributeType(String attributeType)
attributeType
public <RT,E extends Exception> RT acceptVisitor(edu.umn.cs.melt.copper.compiletime.spec.grammarbeans.visitors.CopperASTBeanVisitor<RT,E> visitor) throws E extends Exception
acceptVisitor
in class CopperASTBean
E extends Exception
Copyright © 2018 Minnesota Extensible Language Tools. All rights reserved.