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/StringAddOperator.java

27 lines
600 B

package jode;
import sun.tools.java.Type;
public class StringAddOperator extends SimpleOperator {
protected Type operandType;
public StringAddOperator() {
super(MyType.tString, ADD_OP, 2);
operandTypes[1] = MyType.tUnknown;
}
public int getPriority() {
return 610;
}
public int getOperandPriority(int i) {
return 610 + i;
}
public boolean equals(Object o) {
return (o instanceof StringAddOperator);
}
public String toString(String[] operands) {
return operands[0] + getOperatorString() + operands[1];
}
}