gov.llnl.babel.ast
Class AttributeList
java.lang.Object
   gov.llnl.babel.ast.ASTNode
gov.llnl.babel.ast.ASTNode
       gov.llnl.babel.ast.NodeList
gov.llnl.babel.ast.NodeList
           gov.llnl.babel.ast.AttributeList
gov.llnl.babel.ast.AttributeList
- public class AttributeList 
- extends NodeList
 
 
 
 
| Method Summary | 
|  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)
 | 
 
 
| Methods inherited from class gov.llnl.babel.ast.ASTNode | 
| getFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntry | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AttributeList
public AttributeList(ParseTreeNode src,
                     ASTNode parent)
cloneEmpty
public NodeList cloneEmpty()
- 
- Specified by:
- cloneEmptyin class- NodeList
 
- 
 
addAttribute
public boolean addAttribute(Attribute attr)
- 
 
hasAttribute
public boolean hasAttribute(java.lang.String builtin)
- Returns true iff a named attribute is
 
- 
- Parameters:
- builtin-
- Returns:
 
getAttribute
public Attribute getAttribute(java.lang.String builtin)
- Returns builtin Attribute by name if it exists, null otherwise.
 
- 
- Parameters:
- builtin-
- Returns:
 
hasAttribute
public boolean hasAttribute(java.lang.String key,
                            java.lang.String value)
- Check for matching key/value pair of attributes (or key, or value)
 
- 
- Parameters:
- key- The matching key or asterisk (*) meaning "any"
- value- The matching value or asterisk (*) meaning "any"
- Returns:
- See Also:
- Attribute
 
accept
public java.lang.Object accept(Visitor v,
                               java.lang.Object data)
- Description copied from class: ASTNode
- implements "Visitor Pattern"
 
- 
- Specified by:
- acceptin class- ASTNode
 
- 
- Parameters:
- v- The visitor class
- data- Optional extra data
- Returns:
- Optional extra data