public class AttributeList extends NodeList
ILLEGAL_NODEID| Constructor and Description |
|---|
AttributeList(ParseTreeNode src,
ASTNode parent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(Visitor v,
java.lang.Object data)
implements "Visitor Pattern"
|
boolean |
addAttribute(Attribute attr) |
NodeList |
cloneEmpty() |
Attribute |
getAttribute(java.lang.String builtin)
Returns builtin Attribute by name if it exists, null otherwise.
|
boolean |
hasAttribute(java.lang.String builtin)
Returns true iff a named attribute is
|
boolean |
hasAttribute(java.lang.String key,
java.lang.String value)
Check for matching key/value pair of attributes (or key, or value)
|
clear, getList, isEmpty, iterator, listiterator, sizegetFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntrypublic AttributeList(ParseTreeNode src, ASTNode parent)
public NodeList cloneEmpty()
cloneEmpty in class NodeListpublic boolean addAttribute(Attribute attr)
public boolean hasAttribute(java.lang.String builtin)
builtin - public Attribute getAttribute(java.lang.String builtin)
builtin - public boolean hasAttribute(java.lang.String key,
java.lang.String value)
key - The matching key or asterisk (*) meaning "any"value - The matching value or asterisk (*) meaning "any"Attribute