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 .