本文整理了Java中org.codehaus.groovy.syntax.Token.newPlaceholder()
方法的一些代码示例,展示了Token.newPlaceholder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Token.newPlaceholder()
方法的具体详情如下:
包路径:org.codehaus.groovy.syntax.Token
类名称:Token
方法名:newPlaceholder
[英]Creates a token with the specified meaning.
[中]创建具有指定含义的标记。
代码示例来源:origin: org.codehaus.groovy/groovy
/**
* 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);
}
代码示例来源:origin: org.codehaus.groovy/groovy
/**
* 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);
}
代码示例来源:origin: org.codehaus.groovy/groovy-jdk14
/**
* 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 );
}
代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal
/**
* 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 );
}
代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm
/**
* 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);
}
代码示例来源:origin: org.kohsuke.droovy/groovy
/**
* 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 );
}
代码示例来源:origin: org.kohsuke.droovy/groovy
/**
* 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 );
}
代码示例来源:origin: org.codehaus.groovy/groovy-jdk14
/**
* 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 );
}
代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal
/**
* 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 );
}
代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm
/**
* 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);
}
内容来源于网络,如有侵权,请联系作者删除!