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.
19 lines
385 B
19 lines
385 B
package jode;
|
|
import sun.tools.java.Type;
|
|
|
|
public class NewOperator extends NoArgOperator {
|
|
String typeString;
|
|
|
|
public NewOperator(Type type, String typeString) {
|
|
super(type);
|
|
this.typeString = typeString;
|
|
}
|
|
|
|
public int getPriority() {
|
|
return 950;
|
|
}
|
|
|
|
public String toString(String[] operands) {
|
|
return "new "+typeString;
|
|
}
|
|
}
|
|
|