/** * {@inheritDoc} */ @Override public String toActualText() { return getText(); }
/** * {@inheritDoc} */ @Override public String toParsedText() { return getText(); }
/** * {@inheritDoc} */ @Override public String toParsedText() { return getText(); }
/** * {@inheritDoc} */ @Override public void visit(StringLiteral expression) { if (type == LiteralType.STRING_LITERAL) { literal = expression.getText(); } }
/** * {@inheritDoc} */ @Override public String toActualText() { return getText(); }
/** * {@inheritDoc} */ @Override public void visit(StringLiteral expression) { if (type == LiteralType.STRING_LITERAL) { literal = expression.getText(); } }
/** * {@inheritDoc} */ @Override protected void toParsedText(StringBuilder writer, boolean actual) { writer.append(getText()); } }
/** * {@inheritDoc} */ @Override protected void toParsedText(StringBuilder writer, boolean actual) { writer.append(getText()); } }
/** * Returns the string literal without the single quotes. * * @return The unquoted text */ public String getUnquotedText() { return ExpressionTools.unquote(getText()); }
/** * {@inheritDoc} */ @Override protected void addOrderedChildrenTo(List<Expression> children) { children.add(buildStringExpression(getText())); }
/** * {@inheritDoc} */ @Override protected void addOrderedChildrenTo(List<Expression> children) { children.add(buildStringExpression(getText())); }
/** * {@inheritDoc} */ @Override protected void parse(WordParser wordParser, boolean tolerant) { wordParser.moveForward(getText()); }
/** * Returns the string literal without the single quotes. * * @return The unquoted text */ public String getUnquotedText() { return ExpressionTools.unquote(getText()); }
/** * {@inheritDoc} */ @Override protected void parse(WordParser wordParser, boolean tolerant) { wordParser.moveForward(getText()); }
/** * Determines whether the closing quote was present or not. * * @return <code>true</code> if the literal is ended by a single quote; <code>false</code> * otherwise */ public boolean hasCloseQuote() { if (hasCloseQuote == null) { String text = getText(); int length = text.length(); hasCloseQuote = (length > 1) && ExpressionTools.isQuote(text.charAt(length - 1)); } return hasCloseQuote; }
/** * Determines whether the closing quote was present or not. * * @return <code>true</code> if the literal is ended by a single quote; <code>false</code> * otherwise */ public boolean hasCloseQuote() { if (hasCloseQuote == null) { String text = getText(); int length = text.length(); hasCloseQuote = (length > 1) && ExpressionTools.isQuote(text.charAt(length - 1)); } return hasCloseQuote; }
/** * {@inheritDoc} */ @Override public void visit(StringLiteral expression) { StringLiteralStateObject stateObject = new StringLiteralStateObject( parent, expression.getText() ); stateObject.setExpression(expression); this.stateObject = stateObject; }