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
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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