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 |
|
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 |
| 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 |
REPRESENTATION
public static final java.lang.String REPRESENTATION
- The representation property name
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 namefn - the filenamebl - the begin linebc - the begin columnel - the end lineec - 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 namefn - the filenamebl - the begin linebc - the begin columnel - the end lineec - the end column- Throws:
java.lang.IllegalArgumentException - if rep is null
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.