Use newer Java features in places where it makes sense and more (#1009)

This commit is contained in:
altrisi authored and GitHub committed 2021-08-03 07:32:40 -03:00
1 parent 28cb136c6b
commit 7fb5e47da5
34 files changed
+338 -399

No files matched your search

+5
View File
@@ -101,10 +101,12 @@ public abstract class Fluff
return name;
}
@Override
public int getNumParams() {
return numParams;
}
@Override
public boolean numParamsVaries() {
return numParams < 0;
}
@@ -162,6 +164,7 @@ public abstract class Fluff
return new LazyValue()
{ // eager evaluation always ignores the required type and evals params by none default
private List<Value> params;
@Override
public Value evalValue(Context c, Context.Type type)
{
ILazyFunction.checkInterrupts();
@@ -202,10 +205,12 @@ public abstract class Fluff
this.leftAssoc = leftAssoc;
}
@Override
public int getPrecedence() {
return precedence;
}
@Override
public boolean isLeftAssoc() {
return leftAssoc;
}