コード例 #1
0
  @Override
  public Expression build(List<CompilationUnit> out) {
    AST ast = this.getAST();

    ParenthesizedExpression paren = ast.newParenthesizedExpression();
    paren.setExpression(this.expr.translate(out));

    return paren;
  }
コード例 #2
0
  public EParenthesizedExpression(
      EAST east,
      ParenthesizedExpression original,
      EASTDataNode scope,
      EASTExecutableNode parent,
      EParenthesizedExpression base) {
    super(east, original, scope, parent, base);

    this.datagroup = scope.getDataGroup().append(new SimpleDataGroup("paren"));

    this.expr =
        EExpression.create(
            this.east, original.getExpression(), scope, this, base == null ? null : base.expr);
  }