public VariableExpression(String variable, ClassNode type) { this.variable = variable; originType = type; setType(ClassHelper.getWrapper(type)); }
/** * 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); }
thisExpression.setType(targetClass);
public VariableExpression(String variable, ClassNode type) { this.variable = variable; originType = type; setType(ClassHelper.getWrapper(type)); }
public VariableExpression(String variable, ClassNode type) { this.variable = variable; originType = type; setType(ClassHelper.getWrapper(type)); }
public VariableExpression(String variable, ClassNode type) { this.variable = variable; originType = type; setType(ClassHelper.getWrapper(type)); }
public VariableExpression(String variable, ClassNode type) { this.variable = variable; originType = type; setType(ClassHelper.getWrapper(type)); }
/** * 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); }
libraryVar.setType(new ClassNode(Script.class)); DeclarationExpression de = new DeclarationExpression(libraryVar, Token.newSymbol(Types.EQUAL, 1, 1), mce); de.addAnnotation(new AnnotationNode(new ClassNode(Field.class)));
libraryVar.setType(new ClassNode(Script.class)); DeclarationExpression de = new DeclarationExpression(libraryVar, Token.newSymbol(Types.EQUAL, 1, 1), mce); de.addAnnotation(new AnnotationNode(new ClassNode(Field.class)));