koala.dynamicjava.tree
Class SuperFieldAccess

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.Expression
          extended by koala.dynamicjava.tree.PrimaryExpression
              extended by koala.dynamicjava.tree.FieldAccess
                  extended by koala.dynamicjava.tree.SuperFieldAccess
All Implemented Interfaces:
LeftHandSide, SourceInfo.Wrapper

public class SuperFieldAccess
extends FieldAccess

This class represents the super field access nodes of the syntax tree

Version:
1.0 - 1999/04/24
Author:
Stephane Hillion

Constructor Summary
SuperFieldAccess(Option<java.lang.String> cn, java.lang.String fln)
           
SuperFieldAccess(Option<java.lang.String> cn, java.lang.String fln, SourceInfo si)
           
 
Method Summary
<T> T
acceptVisitor(Visitor<T> visitor)
          Allows a visitor to traverse the tree
 Option<java.lang.String> getClassName()
          Returns the name of the class that qualify that object
 void setClassName(Option<java.lang.String> cn)
          Sets the name of the class that qualifies that object
 java.lang.String toString()
          Implementation of toString for use in unit testing
 
Methods inherited from class koala.dynamicjava.tree.FieldAccess
getFieldName, setFieldName
 
Methods inherited from class koala.dynamicjava.tree.Node
archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SuperFieldAccess

public SuperFieldAccess(Option<java.lang.String> cn,
                        java.lang.String fln,
                        SourceInfo si)

SuperFieldAccess

public SuperFieldAccess(Option<java.lang.String> cn,
                        java.lang.String fln)
Method Detail

getClassName

public Option<java.lang.String> getClassName()
Returns the name of the class that qualify that object


setClassName

public void setClassName(Option<java.lang.String> cn)
Sets the name of the class that qualifies that object

Throws:
java.lang.IllegalArgumentException - if s is null or body is null

acceptVisitor

public <T> T acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree

Specified by:
acceptVisitor in class Node
Parameters:
visitor - the visitor to accept

toString

public java.lang.String toString()
Implementation of toString for use in unit testing

Overrides:
toString in class java.lang.Object