/** * Creates an assignment expression in which the specified expression * is written into the specified variable name. */ public static BinaryExpression newAssignmentExpression(Variable variable, Expression rhs) { VariableExpression lhs = new VariableExpression(variable); Token operator = Token.newPlaceholder(Types.ASSIGN); return new BinaryExpression(lhs, operator, rhs); }
/** * Creates variable initialization expression in which the specified expression * is written into the specified variable name. */ public static BinaryExpression newInitializationExpression(String variable, ClassNode type, Expression rhs) { VariableExpression lhs = new VariableExpression(variable); if (type != null) { lhs.setType(type); } Token operator = Token.newPlaceholder(Types.ASSIGN); return new BinaryExpression(lhs, operator, rhs); }
/** * Creates an assignment expression in which the specified expression * is written into the specified variable name. */ public static BinaryExpression newAssignmentExpression( Variable variable, Expression rhs ) { VariableExpression lhs = new VariableExpression( variable ); Token operator = Token.newPlaceholder( Types.ASSIGN ); return new BinaryExpression( lhs, operator, rhs ); }
/** * Creates an assignment expression in which the specified expression * is written into the specified variable name. */ public static BinaryExpression newAssignmentExpression( Variable variable, Expression rhs ) { VariableExpression lhs = new VariableExpression( variable ); Token operator = Token.newPlaceholder( Types.ASSIGN ); return new BinaryExpression( lhs, operator, rhs ); }
/** * Creates an assignment expression in which the specified expression * is written into the specified variable name. */ public static BinaryExpression newAssignmentExpression(Variable variable, Expression rhs) { VariableExpression lhs = new VariableExpression(variable); Token operator = Token.newPlaceholder(Types.ASSIGN); return new BinaryExpression(lhs, operator, rhs); }
/** * Creates an assignment expression in which the specified expression * is written into the specified variable name. */ public static BinaryExpression newAssignmentExpression( Variable variable, Expression rhs ) { VariableExpression lhs = new VariableExpression( variable ); Token operator = Token.newPlaceholder( Types.ASSIGN ); return new BinaryExpression( lhs, operator, rhs ); }
/** * Creates variable initialization expression in which the specified expression * is written into the specified variable name. */ public static BinaryExpression newInitializationExpression( String variable, ClassNode type, Expression rhs ) { VariableExpression lhs = new VariableExpression( variable ); if( type != null ) { lhs.setType(type); } Token operator = Token.newPlaceholder( Types.ASSIGN ); return new BinaryExpression( lhs, operator, rhs ); }
/** * Creates variable initialization expression in which the specified expression * is written into the specified variable name. */ public static BinaryExpression newInitializationExpression( String variable, ClassNode type, Expression rhs ) { VariableExpression lhs = new VariableExpression( variable ); if( type != null ) { lhs.setType(type); } Token operator = Token.newPlaceholder( Types.ASSIGN ); return new BinaryExpression( lhs, operator, rhs ); }
/** * Creates variable initialization expression in which the specified expression * is written into the specified variable name. */ public static BinaryExpression newInitializationExpression( String variable, ClassNode type, Expression rhs ) { VariableExpression lhs = new VariableExpression( variable ); if( type != null ) { lhs.setType(type); } Token operator = Token.newPlaceholder( Types.ASSIGN ); return new BinaryExpression( lhs, operator, rhs ); }
/** * Creates variable initialization expression in which the specified expression * is written into the specified variable name. */ public static BinaryExpression newInitializationExpression(String variable, ClassNode type, Expression rhs) { VariableExpression lhs = new VariableExpression(variable); if (type != null) { lhs.setType(type); } Token operator = Token.newPlaceholder(Types.ASSIGN); return new BinaryExpression(lhs, operator, rhs); }