edu.utep.cs.et.rat.val
Class StringValue
java.lang.Object
edu.utep.cs.et.rat.val.PrimitiveValue
edu.utep.cs.et.rat.val.StringValue
- All Implemented Interfaces:
- Denotable
public class StringValue
- extends PrimitiveValue
A class to represent a String value.
- Version:
- $Revision: 1.3 $
- Author:
- Yoonsik Cheon
|
Constructor Summary |
StringValue(String val)
Creates a new instance representing the given
String value. |
|
Method Summary |
String |
code()
Returns Java code which, if evaluated, produces the represented
value of this object. |
Class |
type()
Returns the type of this value. |
StringValue
public StringValue(String val)
- Creates a new instance representing the given
String 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
code
public String code()
- Returns Java code which, if evaluated, produces the represented
value of this object.
- Specified by:
code in interface Denotable- Overrides:
code in class PrimitiveValue
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.