Class attr
java.lang.Object
  
TreeNode
      
Feature
          
attr
 class attr
- extends Feature
 
Defines AST constructor 'attr'.
    
    See TreeNode for full documentation.
 
 
 
| 
Method Summary | 
 TreeNode | 
copy()
 
          Creates a copy of this node. | 
 void | 
dump_with_types(java.io.PrintStream out,
                int n)
 
            | 
 void | 
dump(java.io.PrintStream out,
     int n)
 
          Pretty-prints this node to this output stream. | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
name
protected AbstractSymbol name
type_decl
protected AbstractSymbol type_decl
init
protected Expression init
attr
public attr(int lineNumber,
            AbstractSymbol a1,
            AbstractSymbol a2,
            Expression a3)
- Creates "attr" AST node.
- Parameters:
 lineNumber - the line in the source file from which this node came.a1 - initial value for namea2 - initial value for type_decla3 - initial value for init
 
copy
public TreeNode copy()
- Description copied from class: 
TreeNode 
- Creates a copy of this node.
- Specified by:
 copy in class TreeNode
 
- Returns:
 - a copy of this node
 
 
 
dump
public void dump(java.io.PrintStream out,
                 int n)
- Description copied from class: 
TreeNode 
- Pretty-prints this node to this output stream.
- Specified by:
 dump in class TreeNode
 
- Parameters:
 out - the output streamn - the number of spaces to indent the output
 
 
dump_with_types
public void dump_with_types(java.io.PrintStream out,
                            int n)
- Specified by:
 dump_with_types in class Feature