Revision 43828 branches/org.gvsig.desktop-2018a/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/java/org/gvsig/expressionevaluator/impl/SQLLexicalAnalyzer.java
SQLLexicalAnalyzer.java | ||
---|---|---|
1 | 1 |
package org.gvsig.expressionevaluator.impl; |
2 | 2 |
|
3 |
import org.gvsig.expressionevaluator.LexicalAnalyzer; |
|
4 |
|
|
3 | 5 |
public class SQLLexicalAnalyzer extends AbstractLexicalAnalyzer { |
4 | 6 |
|
5 | 7 |
public SQLLexicalAnalyzer(String source) { |
... | ... | |
23 | 25 |
} |
24 | 26 |
|
25 | 27 |
@Override |
28 |
public LexicalAnalyzer clone() throws CloneNotSupportedException { |
|
29 |
// As this implementation does not add state to the abstract class, we |
|
30 |
// just call the super class. |
|
31 |
SQLLexicalAnalyzer other = (SQLLexicalAnalyzer) super.clone(); |
|
32 |
|
|
33 |
return other; |
|
34 |
} |
|
35 |
|
|
36 |
|
|
37 |
@Override |
|
26 | 38 |
protected Token getToken() { |
27 | 39 |
skipblanks(); |
28 | 40 |
char ch = getch(); |
... | ... | |
88 | 100 |
} |
89 | 101 |
ungetch(); |
90 | 102 |
parseNumber(); |
91 |
token.literal = "+" + token.literal;
|
|
103 |
token.setLiteral("+" + token.getLiteral());
|
|
92 | 104 |
return token; |
93 | 105 |
case '-': |
94 | 106 |
ch = getch(); |
Also available in: Unified diff