Examples of CharLiteralExpr


Examples of com.github.antlrjavaparser.api.expr.CharLiteralExpr

                    convertedValue);
        }

        if (value instanceof CharAttributeValue) {
            final char castValue = ((CharAttributeValue) value).getValue();
            final CharLiteralExpr convertedValue = new CharLiteralExpr(
                    new String(new char[] { castValue }));
            return new MemberValuePair(value.getName().getSymbolName(),
                    convertedValue);
        }
View Full Code Here

Examples of japa.parser.ast.expr.CharLiteralExpr

                    convertedValue);
        }

        if (value instanceof CharAttributeValue) {
            final char castValue = ((CharAttributeValue) value).getValue();
            final CharLiteralExpr convertedValue = new CharLiteralExpr(
                    new String(new char[] { castValue }));
            return new MemberValuePair(value.getName().getSymbolName(),
                    convertedValue);
        }
View Full Code Here

Examples of japa.parser.ast.expr.CharLiteralExpr

        return Boolean.TRUE;
    }

    public Boolean visit(CharLiteralExpr n1, Node arg) {
        CharLiteralExpr n2 = (CharLiteralExpr) arg;

        if (!objEquals(n1.getValue(), n2.getValue())) {
            return Boolean.FALSE;
        }

        return Boolean.TRUE;
    }
View Full Code Here

Examples of japa.parser.ast.expr.CharLiteralExpr

                jj_consume_token(FLOATING_POINT_LITERAL);
                ret = new DoubleLiteralExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, token.image);
                break;
            case CHARACTER_LITERAL:
                jj_consume_token(CHARACTER_LITERAL);
                ret = new CharLiteralExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, token.image.substring(1, token.image.length() - 1));
                break;
            case STRING_LITERAL:
                jj_consume_token(STRING_LITERAL);
                ret = new StringLiteralExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, token.image.substring(1, token.image.length() - 1));
                break;
View Full Code Here

Examples of japa.parser.ast.expr.CharLiteralExpr

  @Override
  public Node visit(CharLiteralExpr _n, Object _arg) {
    Comment comment = cloneNodes(_n.getComment(), _arg);

    CharLiteralExpr r = new CharLiteralExpr(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        _n.getValue()
    );
    r.setComment(comment);
    return r;
  }
View Full Code Here

Examples of japa.parser.ast.expr.CharLiteralExpr

    return Boolean.TRUE;
  }

  @Override public Boolean visit(final CharLiteralExpr n1, final Node arg) {
    final CharLiteralExpr n2 = (CharLiteralExpr) arg;

    if (!objEquals(n1.getValue(), n2.getValue())) {
      return Boolean.FALSE;
    }

    return Boolean.TRUE;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.