public class AttributeDict
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeDict.DictType |
| Modifier and Type | Field and Description |
|---|---|
GrammarAST |
ast |
java.util.LinkedHashMap<java.lang.String,Attribute> |
attributes
The list of
Attribute objects. |
java.lang.String |
name |
static AttributeDict |
predefinedTokenDict
All
Token scopes (token labels) share the same fixed scope of
of predefined attributes. |
AttributeDict.DictType |
type |
| Constructor and Description |
|---|
AttributeDict() |
AttributeDict(AttributeDict.DictType type) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
add(Attribute a) |
Attribute |
get(java.lang.String name) |
java.lang.String |
getName() |
java.util.Set<java.lang.String> |
intersection(AttributeDict other)
Return the set of keys that collide from
this and other. |
int |
size() |
java.lang.String |
toString() |
public java.lang.String name
public GrammarAST ast
public AttributeDict.DictType type
public static final AttributeDict predefinedTokenDict
public AttributeDict()
public AttributeDict(AttributeDict.DictType type)
public Attribute get(java.lang.String name)
public java.lang.String getName()
public int size()
public java.util.Set<java.lang.String> intersection(AttributeDict other)
this and other.public java.lang.String toString()
toString in class java.lang.Object