69 |
} |
} |
70 |
|
|
71 |
/** |
/** |
72 |
|
* Constructs a <code>Literal</code> using the specified lexical form |
73 |
|
* and type. |
74 |
|
* |
75 |
|
* @param lexicalForm the lexical form of this literal. |
76 |
|
* @param type the type of this literal. |
77 |
|
*/ |
78 |
|
public Literal(String lexicalForm, Type type) |
79 |
|
{ |
80 |
|
this(lexicalForm); |
81 |
|
setType(type); |
82 |
|
} |
83 |
|
|
84 |
|
/** |
85 |
* Returns a textual representation of the literal. |
* Returns a textual representation of the literal. |
86 |
* |
* |
87 |
* @return a textual representation. |
* @return a textual representation. |