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.
20 lines
509 B
20 lines
509 B
package jode;
|
|
import sun.tools.java.Type;
|
|
|
|
public class NewConstructorOperator extends NoArgOperator {
|
|
Expression constructor;
|
|
|
|
public NewConstructorOperator(int addr, int length, Type type,
|
|
Expression expr) {
|
|
super(addr,length, type);
|
|
this.constructor = expr;
|
|
}
|
|
|
|
public int getPriority() {
|
|
return 950;
|
|
}
|
|
|
|
public String toString(CodeAnalyzer ca, String[] operands) {
|
|
return "new "+constructor.toString(ca, 0);
|
|
}
|
|
}
|
|
|