}
this.variableClass = (String) completions.getGlobalVariable( set.variable );
} else {
FactPattern pattern = mod.getModel().getLHSBoundFact( set.variable );
if ( pattern != null ) {
List<String> methodList = completions.getMethodNames( pattern.getFactType() );
fieldCompletionTexts = new String[methodList.size()];
fieldCompletionValues = new String[methodList.size()];
int i = 0;
for ( String methodName : methodList ) {
fieldCompletionTexts[i] = methodName;
fieldCompletionValues[i] = methodName;
i++;
}
this.variableClass = pattern.getFactType();
this.isBoundFact = true;
} else {
/*
* if the call method is applied on a bound variable created in the rhs