Adjust doc
@@ -201,8 +201,12 @@ public class AdditionOperator implements BinaryOperator {
return "+";
}
- public Class<? extends BinaryExpression<?>> getNodeClass(){
- return AdditionExpression.class;
+ public BinaryExpression<?> getInstance() {
+ return new AddExpression();
+ }
+
+ public BinaryOperatorType getType() {
+ return BinaryOperatorType.NORMAL;
}
public Associativity getAssociativity(){
@@ -308,7 +312,7 @@ public class DefaultAttributeResolver implements AttributeResolver {
String filename,
int lineNumber) {
if (instance instanceof CustomObject) {
- return "customValue"
+ return "customValue";
}
return null;
}
