Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-13 22:50:06 +01:00
Changed signature of the optimize() method to return an RValue.
Dieser Commit ist enthalten in:
Ursprung
7cbb7da80b
Commit
05b427316d
@ -84,7 +84,7 @@ public class Function extends Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Node optimize() throws EvaluationException {
|
public RValue optimize() throws EvaluationException {
|
||||||
final RValue[] optimizedArgs = new RValue[args.length];
|
final RValue[] optimizedArgs = new RValue[args.length];
|
||||||
boolean optimizable = !method.isAnnotationPresent(Dynamic.class);
|
boolean optimizable = !method.isAnnotationPresent(Dynamic.class);
|
||||||
int position = getPosition();
|
int position = getPosition();
|
||||||
|
@ -34,7 +34,7 @@ public abstract class Node implements RValue {
|
|||||||
@Override
|
@Override
|
||||||
public abstract String toString();
|
public abstract String toString();
|
||||||
|
|
||||||
public Node optimize() throws EvaluationException {
|
public RValue optimize() throws EvaluationException {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,5 +29,5 @@ import com.sk89q.worldedit.expression.Identifiable;
|
|||||||
public interface RValue extends Identifiable {
|
public interface RValue extends Identifiable {
|
||||||
public double getValue() throws EvaluationException;
|
public double getValue() throws EvaluationException;
|
||||||
|
|
||||||
public Node optimize() throws EvaluationException;
|
public RValue optimize() throws EvaluationException;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ public class Sequence extends Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Node optimize() throws EvaluationException {
|
public RValue optimize() throws EvaluationException {
|
||||||
List<RValue> newSequence = new ArrayList<RValue>();
|
List<RValue> newSequence = new ArrayList<RValue>();
|
||||||
|
|
||||||
RValue droppedLast = null;
|
RValue droppedLast = null;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren