Mirror of the JODE repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jode/jode/jode/expr/NewConstructorOperator.java

19 lines
439 B

package jode;
import sun.tools.java.Type;
public class NewConstructorOperator extends NoArgOperator {
Expression constructor;
public NewConstructorOperator(Type type, Expression expr) {
super(type);
this.constructor = expr;
}
public int getPriority() {
return 950;
}
public String toString(CodeAnalyzer ca, String[] operands) {
return "new "+constructor.toString(ca, 0);
}
}