edu.utep.cs.et.rat.val
Class CharValue
java.lang.Object
edu.utep.cs.et.rat.val.PrimitiveValue
edu.utep.cs.et.rat.val.CharValue
- All Implemented Interfaces:
- Denotable
public class CharValue
- extends PrimitiveValue
A class to represent a char value.
- Version:
- $Revision: 1.2 $
- Author:
- Yoonsik Cheon
|
Constructor Summary |
CharValue(char val)
Creates a new instance representing the given
char value. |
|
Method Summary |
static String |
toPrintableString(char c)
Returns a printable string representation for the given char
value. |
String |
toString()
Returns the string representation of this value. |
Class |
type()
Returns the type of this value. |
CharValue
public CharValue(char val)
- Creates a new instance representing the given
char value.
type
public Class type()
- Description copied from class:
PrimitiveValue
- Returns the type of this value.
- Specified by:
type in interface Denotable- Specified by:
type in class PrimitiveValue
toString
public String toString()
- Description copied from class:
PrimitiveValue
- Returns the string representation of this value.
- Specified by:
toString in interface Denotable- Overrides:
toString in class PrimitiveValue
toPrintableString
public static String toPrintableString(char c)
- Returns a printable string representation for the given char
value. E.g., "a" for 'a', "\\n" for '\n' and
"\\u0000" for ' '.
JET is Copyright (C) 2005-2007 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.