62 lines
1.6 KiB
Java
62 lines
1.6 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.baja.util;
|
|
|
|
import javax.baja.sys.Action;
|
|
import javax.baja.sys.BComponent;
|
|
import javax.baja.sys.BValue;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.util.ICoalesceable;
|
|
|
|
public class Invocation
|
|
implements Runnable,
|
|
ICoalesceable {
|
|
protected int hashCode;
|
|
protected BComponent instance;
|
|
protected Action action;
|
|
protected BValue argument;
|
|
protected Context context;
|
|
|
|
public void run() {
|
|
this.instance.doInvoke(this.action, this.argument, this.context);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return this.hashCode;
|
|
}
|
|
|
|
public boolean equals(Object object) {
|
|
if (object instanceof Invocation) {
|
|
Invocation invocation = (Invocation)object;
|
|
boolean bl = false;
|
|
if (this.instance == invocation.instance && this.action == invocation.action) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public Object getCoalesceKey() {
|
|
return this;
|
|
}
|
|
|
|
public ICoalesceable coalesce(ICoalesceable iCoalesceable) {
|
|
return iCoalesceable;
|
|
}
|
|
|
|
public String toString() {
|
|
return this.instance.toPathString() + '.' + this.action.getName() + '(' + (this.argument == null ? "" : this.argument.toString()) + ')';
|
|
}
|
|
|
|
public Invocation(BComponent bComponent, Action action, BValue bValue, Context context) {
|
|
this.hashCode = bComponent.hashCode() ^ action.getName().hashCode();
|
|
this.instance = bComponent;
|
|
this.action = action;
|
|
this.argument = bValue;
|
|
this.context = context;
|
|
}
|
|
}
|
|
|