koala.dynamicjava.tree
Class ReferenceType

java.lang.Object
  |
  +--koala.dynamicjava.tree.Node
        |
        +--koala.dynamicjava.tree.Type
              |
              +--koala.dynamicjava.tree.ReferenceType

public class ReferenceType
extends Type

This class represents the reference type nodes of the syntax tree


Field Summary
static java.lang.String REPRESENTATION
          The representation property name
 
Fields inherited from class koala.dynamicjava.tree.Node
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE, FILENAME
 
Constructor Summary
ReferenceType(java.util.List ids)
          Initializes the type
ReferenceType(java.util.List ids, java.lang.String fn, int bl, int bc, int el, int ec)
          Initializes the type
ReferenceType(java.lang.String rep)
          Initializes the type
ReferenceType(java.lang.String rep, java.lang.String fn, int bl, int bc, int el, int ec)
          Initializes the type
 
Method Summary
 java.lang.Object acceptVisitor(Visitor visitor)
          Allows a visitor to traverse the tree
 java.lang.String getRepresentation()
          Returns the representation of this type
 void setRepresentation(java.lang.String s)
          Sets the representation of this type
 
Methods inherited from class koala.dynamicjava.tree.Node
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFilename, getProperties, getProperty, hasProperty, removePropertyChangeListener, removePropertyChangeListener, setBeginColumn, setBeginLine, setEndColumn, setEndLine, setFilename, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPRESENTATION

public static final java.lang.String REPRESENTATION
The representation property name
Constructor Detail

ReferenceType

public ReferenceType(java.util.List ids)
Initializes the type
Parameters:
ids - the list of the tokens that compose the type name
Throws:
java.lang.IllegalArgumentException - if ids is null

ReferenceType

public ReferenceType(java.lang.String rep)
Initializes the type
Parameters:
rep - the type name
Throws:
java.lang.IllegalArgumentException - if rep is null

ReferenceType

public ReferenceType(java.util.List ids,
                     java.lang.String fn,
                     int bl,
                     int bc,
                     int el,
                     int ec)
Initializes the type
Parameters:
ids - the list of the tokens that compose the type name
fn - the filename
bl - the begin line
bc - the begin column
el - the end line
ec - the end column
Throws:
java.lang.IllegalArgumentException - if ids is null

ReferenceType

public ReferenceType(java.lang.String rep,
                     java.lang.String fn,
                     int bl,
                     int bc,
                     int el,
                     int ec)
Initializes the type
Parameters:
rep - the type name
fn - the filename
bl - the begin line
bc - the begin column
el - the end line
ec - the end column
Throws:
java.lang.IllegalArgumentException - if rep is null
Method Detail

getRepresentation

public java.lang.String getRepresentation()
Returns the representation of this type

setRepresentation

public void setRepresentation(java.lang.String s)
Sets the representation of this type
Throws:
java.lang.IllegalArgumentException - if s is null

acceptVisitor

public java.lang.Object acceptVisitor(Visitor visitor)
Allows a visitor to traverse the tree
Overrides:
acceptVisitor in class Node
Parameters:
visitor - the visitor to accept


Copyright © 2001 Stephane Hillion. All Rights Reserved.