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, setNameprotected String attributeType
protected String code
public boolean isComplete()
CopperASTBeanname and location to be set, and may impose
additional individual requirements.isComplete in class CopperASTBeantrue iff all required elements and parameters have been set to non-null values.public Set<String> whatIsMissing()
whatIsMissing in class CopperASTBeanpublic String getAttributeType()
attributeTypepublic void setAttributeType(String attributeType)
attributeTypepublic <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 CopperASTBeanE extends ExceptionCopyright © 2018 Minnesota Extensible Language Tools. All rights reserved.