congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ExpressionFormLine.getGenericType
Code IndexAdd Tabnine to your IDE (free)

How to use
getGenericType
method
in
org.drools.guvnor.models.commons.shared.rule.ExpressionFormLine

Best Java code snippets using org.drools.guvnor.models.commons.shared.rule.ExpressionFormLine.getGenericType (Showing top 8 results out of 315)

origin: org.kie.guvnor/guvnor-guided-rule-editor-client

private String getCurrentGenericType() {
  return expression.getGenericType();
}
origin: org.drools/drools-guvnor-models-commons

private void visitSingleFieldConstraint( SingleFieldConstraintEBLeftSide sfexp ) {
  String genericType = sfexp.getExpressionLeftSide().getGenericType();
  String factType = sfexp.getExpressionLeftSide().getPreviousClassType();
  if ( factType == null ) {
    factType = sfexp.getExpressionLeftSide().getClassType();
  }
  InterpolationVariable var = new InterpolationVariable( sfexp.getValue(),
                              genericType,
                              factType,
                              sfexp.getFieldName() );
  if ( BaseSingleFieldConstraint.TYPE_TEMPLATE == sfexp.getConstraintValueType() && !vars.containsKey( var ) ) {
    vars.put( var,
         vars.size() );
  }
  //Visit Connection constraints
  if ( sfexp.getConnectives() != null ) {
    for ( int i = 0; i < sfexp.getConnectives().length; i++ ) {
      final ConnectiveConstraint cc = sfexp.getConnectives()[ i ];
      InterpolationVariable ccVar = new InterpolationVariable( cc.getValue(),
                                   genericType,
                                   factType,
                                   cc.getFieldName() );
      if ( BaseSingleFieldConstraint.TYPE_TEMPLATE == cc.getConstraintValueType() && !vars.containsKey( ccVar ) ) {
        vars.put( ccVar,
             vars.size() );
      }
    }
  }
}
origin: org.drools/drools-guvnor-models-commons

protected String getFieldBinding( FieldConstraint fc,
                 String var ) {
  String fieldType = null;
  if ( fc instanceof SingleFieldConstraint ) {
    SingleFieldConstraint s = (SingleFieldConstraint) fc;
    if ( s.isBound() && var.equals( s.getFieldBinding() ) ) {
      fieldType = s.getFieldType();
    }
  }
  if ( fc instanceof SingleFieldConstraintEBLeftSide ) {
    SingleFieldConstraintEBLeftSide s = (SingleFieldConstraintEBLeftSide) fc;
    if ( s.isBound() && var.equals( s.getFieldBinding() ) ) {
      fieldType = s.getExpressionLeftSide().getGenericType();
    }
  }
  if ( fc instanceof CompositeFieldConstraint ) {
    CompositeFieldConstraint s = (CompositeFieldConstraint) fc;
    if ( s.getConstraints() != null ) {
      for ( FieldConstraint ss : s.getConstraints() ) {
        fieldType = getFieldBinding( ss,
                       var );
      }
    }
  }
  return fieldType;
}
origin: org.drools/drools-guvnor-models-commons

/**
 * This adds a new connective.
 */
@Override
public void addNewConnective() {
  String factType = getExpressionLeftSide().getPreviousGenericType();
  if ( factType == null ) {
    factType = getExpressionLeftSide().getGenericType();
  }
  String fieldName = getExpressionLeftSide().getFieldName();
  String fieldType = getExpressionLeftSide().getGenericType();
  if ( this.getConnectives() == null ) {
    this.setConnectives( new ConnectiveConstraint[]{ new ConnectiveConstraint( factType,
                                          fieldName,
                                          fieldType ) } );
  } else {
    final ConnectiveConstraint[] newList = new ConnectiveConstraint[ this.getConnectives().length + 1 ];
    for ( int i = 0; i < this.getConnectives().length; i++ ) {
      newList[ i ] = this.getConnectives()[ i ];
    }
    newList[ this.getConnectives().length ] = new ConnectiveConstraint( factType,
                                      fieldName,
                                      fieldType );
    this.setConnectives( newList );
  }
}
origin: org.drools/drools-guvnor-models-commons

addFieldRestriction( buf,
           sfexp.getConstraintValueType(),
           sfexp.getExpressionLeftSide().getGenericType(),
           sfexp.getOperator(),
           parameters,
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

this.factType = sfexp.getExpressionLeftSide().getPreviousGenericType();
if ( this.factType == null ) {
  this.factType = sfexp.getExpressionLeftSide().getGenericType();
this.fieldType = sfexp.getExpressionLeftSide().getGenericType();
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

this.factType = sfexp.getExpressionLeftSide().getPreviousGenericType();
if ( this.factType == null ) {
  this.factType = sfexp.getExpressionLeftSide().getGenericType();
this.fieldType = sfexp.getExpressionLeftSide().getGenericType();
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

factType = sfexp.getExpressionLeftSide().getPreviousGenericType();
if ( factType == null ) {
  factType = sfexp.getExpressionLeftSide().getGenericType();
org.drools.guvnor.models.commons.shared.ruleExpressionFormLinegetGenericType

Popular methods of ExpressionFormLine

  • <init>
  • appendPart
  • getBinding
  • setBinding
  • getClassType
  • getFieldName
  • getParts
  • getPreviousGenericType
  • getRootExpression
  • getText
  • isBound
  • getParametricType
  • isBound,
  • getParametricType,
  • getPreviousClassType,
  • getPreviousPart,
  • isEmpty,
  • removeLast

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • BoxLayout (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now