gov.llnl.babel.ast
Class AttributeList

java.lang.Object
  extended by gov.llnl.babel.ast.ASTNode
      extended by gov.llnl.babel.ast.NodeList
          extended by gov.llnl.babel.ast.AttributeList

public class AttributeList
extends NodeList


Field Summary
 
Fields inherited from class gov.llnl.babel.ast.NodeList
d_list
 
Fields inherited from class gov.llnl.babel.ast.ASTNode
ILLEGAL_NODEID
 
Constructor Summary
AttributeList(ParseTreeNode src, ASTNode parent)
           
 
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.NodeList
clear, getList, isEmpty, iterator, listiterator, size
 
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
 

Constructor Detail

AttributeList

public AttributeList(ParseTreeNode src,
                     ASTNode parent)
Method Detail

cloneEmpty

public NodeList cloneEmpty()
Specified by:
cloneEmpty in 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:
accept in class ASTNode
Parameters:
v - The visitor class
data - Optional extra data
Returns:
Optional extra data