mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-12 12:25:03 +08:00
Changed signature of the optimize() method to return an RValue.
This commit is contained in:
parent
7cbb7da80b
commit
05b427316d
@ -84,7 +84,7 @@ public char id() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Node optimize() throws EvaluationException {
|
||||
public RValue optimize() throws EvaluationException {
|
||||
final RValue[] optimizedArgs = new RValue[args.length];
|
||||
boolean optimizable = !method.isAnnotationPresent(Dynamic.class);
|
||||
int position = getPosition();
|
||||
|
@ -34,7 +34,7 @@ public Node(int position) {
|
||||
@Override
|
||||
public abstract String toString();
|
||||
|
||||
public Node optimize() throws EvaluationException {
|
||||
public RValue optimize() throws EvaluationException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -29,5 +29,5 @@
|
||||
public interface RValue extends Identifiable {
|
||||
public double getValue() throws EvaluationException;
|
||||
|
||||
public Node optimize() throws EvaluationException;
|
||||
public RValue optimize() throws EvaluationException;
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ public String toString() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Node optimize() throws EvaluationException {
|
||||
public RValue optimize() throws EvaluationException {
|
||||
List<RValue> newSequence = new ArrayList<RValue>();
|
||||
|
||||
RValue droppedLast = null;
|
||||
|
Loading…
Reference in New Issue
Block a user