58 |
*/ |
*/ |
59 |
private Type type; |
private Type type; |
60 |
|
|
61 |
|
/** |
62 |
|
* Constructs a <code>Literal</code> using the specified lexical form. |
63 |
|
* |
64 |
|
* @param lexicalForm the lexical form of this literal. |
65 |
|
*/ |
66 |
|
public Literal(String lexicalForm) |
67 |
|
{ |
68 |
|
this.lexicalForm = lexicalForm; |
69 |
|
} |
70 |
|
|
71 |
|
/** |
72 |
|
* Returns a textual representation of the literal. |
73 |
|
* |
74 |
|
* @return a textual representation. |
75 |
|
*/ |
76 |
|
public String toString() |
77 |
|
{ |
78 |
|
return getClass().getName() + |
79 |
|
"[lexicalForm = " + |
80 |
|
lexicalForm + |
81 |
|
", language = " + |
82 |
|
language + |
83 |
|
", type = " + |
84 |
|
type + |
85 |
|
"]"; |
86 |
|
} |
87 |
|
|
88 |
} |
} |