org.drools.rule.builder.dialect.asm.InvokerContext Maven / Gradle / Ivy
package org.drools.rule.builder.dialect.asm;
import java.util.*;
public class InvokerContext implements InvokerDataProvider {
private Map invokerContext;
public InvokerContext(Map invokerContext) {
this.invokerContext = invokerContext;
}
@Override
public int hashCode() {
return (Integer) invokerContext.get("hashCode");
}
public String getPackageName() {
return (String) invokerContext.get("package");
}
public String getRuleClassName() {
return (String) invokerContext.get("ruleClassName");
}
public String getInternalRuleClassName() {
return (getPackageName() + "." + getRuleClassName()).replace(".", "/");
}
public String getInvokerClassName() {
return (String) invokerContext.get("invokerClassName");
}
public String getMethodName() {
return (String) invokerContext.get("methodName");
}
public String[] getGlobals() {
return (String[]) invokerContext.get("globals");
}
public String[] getGlobalTypes() {
return (String[]) invokerContext.get("globalTypes");
}
public Boolean[] getNotPatterns() {
return (Boolean[]) invokerContext.get("notPatterns");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy