com.ibm.tuningfork.tracegen.types
Class ScalarType

java.lang.Object
  extended by com.ibm.tuningfork.tracegen.types.ScalarType

public final class ScalarType
extends Object

A scalar type (e.g. the type of a field of an event).


Field Summary
private  String description
           
static ScalarType DOUBLE
          The scalar type representing a Java double.
static ScalarType INT
          The scalar type representing a Java integer.
static ScalarType LONG
          The scalar type representing a Java long.
private  String name
           
static ScalarType STRING
          The scalar type representing a Java String.
 
Constructor Summary
private ScalarType(String name, String description)
           
 
Method Summary
 String getDescription()
          Return the description of this type.
 String getName()
          Return the name of this type.
 String toString()
          Return a string representing this scalar type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INT

public static final ScalarType INT
The scalar type representing a Java integer.


LONG

public static final ScalarType LONG
The scalar type representing a Java long.


DOUBLE

public static final ScalarType DOUBLE
The scalar type representing a Java double.


STRING

public static final ScalarType STRING
The scalar type representing a Java String.


name

private final String name

description

private final String description
Constructor Detail

ScalarType

private ScalarType(String name,
                   String description)
Method Detail

getName

public final String getName()
Return the name of this type.

Returns:
The name of the type.

getDescription

public final String getDescription()
Return the description of this type.

Returns:
The description of the type.

toString

public final String toString()
Return a string representing this scalar type.

Overrides:
toString in class Object
Returns:
The string representing this scalar type.