koala.dynamicjava.tree
Class PrimitiveTypeName

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.TypeName
          extended by koala.dynamicjava.tree.PrimitiveTypeName
All Implemented Interfaces:
SourceInfo.Wrapper
Direct Known Subclasses:
BooleanTypeName, ByteTypeName, CharTypeName, DoubleTypeName, FloatTypeName, IntTypeName, LongTypeName, ShortTypeName, VoidTypeName

public abstract class PrimitiveTypeName
extends TypeName

This class represents the primitive type nodes of the syntax tree

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

Constructor Summary
protected PrimitiveTypeName(Class<?> val, SourceInfo si)
          Initializes the type
 
Method Summary
 Class<?> getValue()
          Deprecated. 
 void setValue(Class<?> c)
          Sets the value of this node
 String toString()
          Implementation of toString for use in unit testing
 
Methods inherited from class koala.dynamicjava.tree.Node
acceptVisitor, 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

PrimitiveTypeName

protected PrimitiveTypeName(Class<?> val,
                            SourceInfo si)
Initializes the type

Parameters:
val - the value of this type
Throws:
IllegalArgumentException - if val is null
Method Detail

getValue

@Deprecated
public Class<?> getValue()
Deprecated. 

Returns the value of this node


setValue

public void setValue(Class<?> c)
Sets the value of this node

Throws:
IllegalArgumentException - if c is null

toString

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

Overrides:
toString in class Object