use of org.kie.workbench.common.services.refactoring.ResourceReference in project drools-wb by kiegroup.
the class GuidedRuleTemplateIndexVisitor method visitConnectiveConstraint.
private void visitConnectiveConstraint(final ConnectiveConstraint cc) {
ResourceReference resRef = addResourceReference(getFullyQualifiedClassName(cc.getFactType()), ResourceType.JAVA);
resRef.addPartReference(cc.getFieldName(), PartType.FIELD);
addResourceReference(getFullyQualifiedClassName(cc.getFieldType()), ResourceType.JAVA);
}
use of org.kie.workbench.common.services.refactoring.ResourceReference in project drools-wb by kiegroup.
the class GuidedRuleTemplateIndexVisitor method visitSingleFieldConstraint.
private void visitSingleFieldConstraint(final SingleFieldConstraint sfc) {
ResourceReference resRef = addResourceReference(getFullyQualifiedClassName(sfc.getFactType()), ResourceType.JAVA);
resRef.addPartReference(sfc.getFieldName(), PartType.FIELD);
addResourceReference(getFullyQualifiedClassName(sfc.getFieldType()), ResourceType.JAVA);
if (sfc.getConnectives() != null) {
for (int i = 0; i < sfc.getConnectives().length; i++) {
visit(sfc.getConnectives()[i]);
}
}
}
Aggregations