private String getCurrentGenericType() { //If the last ExpressionPart is ExpressionText then we can't show any Fields or Methods from which to select if (expression.getParts().isEmpty()) { return null; } if (expression.getParts().get(expression.getParts().size() - 1) instanceof ExpressionText) { return DataType.TYPE_FINAL_OBJECT; } return expression.getGenericType(); }
private String getCurrentGenericType() { //If the last ExpressionPart is ExpressionText then we can't show any Fields or Methods from which to select if (expression.getParts().isEmpty()) { return null; } if (expression.getParts().get(expression.getParts().size() - 1) instanceof ExpressionText) { return DataType.TYPE_FINAL_OBJECT; } return expression.getGenericType(); }
private Set<String> visitExpressionFormLine(ExpressionFormLine efl) { final Set<String> factTypes = new HashSet<String>(); for (ExpressionPart part : efl.getParts()) { if (part.getClassType() != null) { factTypes.add(part.getClassType()); } } return factTypes; }
private Set<String> visitExpressionFormLine(ExpressionFormLine efl) { final Set<String> factTypes = new HashSet<String>(); for (ExpressionPart part : efl.getParts()) { if (part.getClassType() != null) { factTypes.add(part.getClassType()); } } return factTypes; }
private int size(final ExpressionFormLine expressionFormLine) { final List<ExpressionPart> parts = expressionFormLine.getParts(); return parts.size(); } }
private int size(final ExpressionFormLine expressionFormLine) { final List<ExpressionPart> parts = expressionFormLine.getParts(); return parts.size(); } }
private ExpressionUnboundFact first(final ExpressionFormLine expressionFormLine) { final ExpressionPart firstPart = expressionFormLine.getParts().get(0); return (ExpressionUnboundFact) firstPart; }
private ExpressionUnboundFact first(final ExpressionFormLine expressionFormLine) { final ExpressionPart firstPart = expressionFormLine.getParts().get(0); return (ExpressionUnboundFact) firstPart; }
private boolean isExpressionBindingMissing(final FromCompositeFactPattern fromCompositeFactPattern) { return fromCompositeFactPattern.getExpression().getBinding() == null && fromCompositeFactPattern.getExpression().getParts().isEmpty(); }
private boolean isExpressionBindingMissing(final FromCompositeFactPattern fromCompositeFactPattern) { return fromCompositeFactPattern.getExpression().getBinding() == null && fromCompositeFactPattern.getExpression().getParts().isEmpty(); }
public ExpressionFormLine( ExpressionFormLine other ) { this.index = other.getIndex(); CopyExpressionVisitor copier = new CopyExpressionVisitor(); if ( other.getParts().size() == 0 ) { return; } for ( ExpressionPart exp = copier.copy( other.getRootExpression() ); exp != null; exp = exp.getNext() ) { parts.add( exp ); } }
TEXT_VALUE); getCompletionsForCurrentType(expression.getParts().size() > 1, new Callback<Map<String, String>>() { @Override
TEXT_VALUE); getCompletionsForCurrentType(expression.getParts().size() > 1, new Callback<Map<String, String>>() { @Override
container.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); container.setStylePrimaryName(GuidedRuleEditorResources.INSTANCE.css().container()); for (ExpressionPart expressionPart : expression.getParts()) { if (expressionPart instanceof ExpressionUnboundFact) { continue;
container.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); container.setStylePrimaryName(GuidedRuleEditorResources.INSTANCE.css().container()); for (ExpressionPart expressionPart : expression.getParts()) { if (expressionPart instanceof ExpressionUnboundFact) { continue;