jj_consume_token(K_ESCAPE); token = jj_consume_token(S_CHAR_LITERAL); result.setEscape((new StringValue(token.image)).getValue()); break; default:
public void visit(StringValue stringValue) { buffer.append("'" + stringValue.getValue() + "'"); }
final public Comment Comment() throws ParseException {Comment result = new Comment(); Table table; Column column; Token comment; jj_consume_token(K_COMMENT); jj_consume_token(K_ON); switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { case K_TABLE:{ jj_consume_token(K_TABLE); table = Table(); result.setTable(table); break; } case K_COLUMN:{ jj_consume_token(K_COLUMN); column = Column(); result.setColumn(column); break; } default: jj_la1[396] = jj_gen; jj_consume_token(-1); throw new ParseException(); } jj_consume_token(K_IS); comment = jj_consume_token(S_CHAR_LITERAL); result.setComment(new StringValue(comment.image)); return result; }
public void visit(StringValue stringValue) { buffer.append(stringValue.getComment() != null ? stringValue.getComment() + " " + ExpressionDeParser.LINE_SEPARATOR : "").append("'").append(stringValue.getValue()).append("'"); }
case S_CHAR_LITERAL:{ token = jj_consume_token(S_CHAR_LITERAL); retval = new StringValue(token.image); if (token.specialToken != null) { ((StringValue) retval).setComment(token.specialToken.image);
public String toString() { return (getComment() != null ? getComment() + " " : "") + "'" + value + "'"; }
stringValue.accept(this);
public void visit(StringValue stringValue) { buffer.append("'" + stringValue.getValue() + "'"); }
case S_CHAR_LITERAL:{ token = jj_consume_token(S_CHAR_LITERAL); retval = new StringValue(token.image); linkAST(retval,jjtn000); break;
jj_consume_token(K_ESCAPE); token = jj_consume_token(S_CHAR_LITERAL); result.setEscape((new StringValue(token.image)).getValue()); break; jj_consume_token(K_ESCAPE); token = jj_consume_token(S_CHAR_LITERAL); result.setEscape((new StringValue(token.image)).getValue()); break;
public static String getStringValue(Expression expression) { if (StringValue.class.isInstance(expression)) { return ((StringValue)expression).getValue(); } else if (Column.class.isInstance(expression)) { String columnName = expression.toString(); Matcher matcher = SURROUNDED_IN_QUOTES.matcher(columnName); if (matcher.matches()) { return matcher.group(1); } return columnName; } return expression.toString(); }
case S_CHAR_LITERAL: token = jj_consume_token(S_CHAR_LITERAL); retval = new StringValue(token.image); break; case 79:
jj_consume_token(K_ESCAPE); token = jj_consume_token(S_CHAR_LITERAL); result.setEscape((new StringValue(token.image)).getValue()); break;
@Override public void visit(StringValue expression) { String termRightName = expression.getValue(); result = fac.getConstantLiteral(termRightName, COL_TYPE.STRING); }
public Spoly(Polygon polygon) { super(); expressions = new ArrayList<Expression>(); expressions.add(new StringValue(RegionFinder.ICRS)); for (Point p : polygon.getVertices()) { expressions.add(new DoubleValue(Double.toString(p.getLongitude()))); expressions.add(new DoubleValue(Double.toString(p.getLatitude()))); } convertParameters(); }
result.setCommentLiteral(token.specialToken.image); result.setEscape((new StringValue(token.image)).getValue()); break;
@Override public void visit(StringValue expression) { process(expression.getValue(), Predicate.COL_TYPE.STRING); }
public Spoly(ca.nrc.cadc.stc.Polygon polygon) { super(); expressions = new ArrayList<Expression>(); expressions.add(new StringValue(RegionFinder.ICRS)); for (ca.nrc.cadc.stc.CoordPair coordPair : polygon.getCoordPairs()) { expressions.add(new DoubleValue(Double.toString(coordPair.getX()))); expressions.add(new DoubleValue(Double.toString(coordPair.getY()))); } convertParameters(); }