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

How to use
org.drools.guvnor.models.commons.shared.rule.ExpressionFormLine
constructor

Best Java code snippets using org.drools.guvnor.models.commons.shared.rule.ExpressionFormLine.<init> (Showing top 7 results out of 315)

origin: org.drools/drools-guvnor-models-commons

private void copyMethodParams( ExpressionMethod part,
                ExpressionMethod method ) {
  Map<String, ExpressionFormLine> params = new HashMap<String, ExpressionFormLine>();
  for ( Map.Entry<String, ExpressionFormLine> entry : part.getParams().entrySet() ) {
    params.put( entry.getKey(), new ExpressionFormLine( entry.getValue() ) );
  }
  method.setParams( params );
}
origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

private ExpressionFormLine visitExpressionFormLine( ExpressionFormLine efl ) {
  ExpressionFormLine clone = new ExpressionFormLine( efl );
  clone.setBinding( efl.getBinding() );
  return clone;
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

public void onClick( ClickEvent event ) {
  //Reset Constraint's value and value type
  if ( Window.confirm( Constants.INSTANCE.RemoveConstraintValueDefinitionQuestion() ) ) {
    constraint.setConstraintValueType( BaseSingleFieldConstraint.TYPE_UNDEFINED );
    constraint.setValue( null );
    constraint.clearParameters();
    constraint.setExpressionValue( new ExpressionFormLine() );
    doTypeChosen();
  }
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  public void onClick( ClickEvent event ) {
    SingleFieldConstraintEBLeftSide con = new SingleFieldConstraintEBLeftSide();
    con.setConstraintValueType( SingleFieldConstraint.TYPE_UNDEFINED );
    con.setExpressionLeftSide( new ExpressionFormLine( new ExpressionUnboundFact( pattern ) ) );
    hasConstraints.addConstraint( con );
    modeller.refreshWidget();
    popup.hide();
  }
} );
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  public void onClick( ClickEvent event ) {
    SingleFieldConstraintEBLeftSide con = new SingleFieldConstraintEBLeftSide();
    con.setConstraintValueType( SingleFieldConstraint.TYPE_UNDEFINED );
    fp.addConstraint( con );
    con.setExpressionLeftSide( new ExpressionFormLine( new ExpressionUnboundFact( pattern ) ) );
    modeller.refreshWidget();
    popup.hide();
  }
} );
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

               new ExpressionFormLine( new ExpressionText( "0" ) ) );
  expression.appendPart( collectionIndex );
} else if ( "last".equals( value ) ) {
  ExpressionFormLine index = new ExpressionFormLine( expression );
  index.appendPart( new ExpressionMethod( "size",
                      "int",
origin: org.drools/drools-guvnor-models-commons

@Test
public void testCompositeFactPatternWithFromWithDSL() {
  final RuleModel m = new RuleModel();
  m.name = "model";
  final DSLSentence sen = new DSLSentence();
  sen.setDefinition( "A DSL phrase" );
  m.addLhsItem( sen );
  final FactPattern fp1 = new FactPattern( "Data" );
  fp1.setBoundName( "$d" );
  m.addLhsItem( fp1 );
  final CompositeFactPattern cp = new CompositeFactPattern( CompositeFactPattern.COMPOSITE_TYPE_NOT );
  final FactPattern fp2 = new FactPattern( "Person" );
  final FromCompositeFactPattern ffp1 = new FromCompositeFactPattern();
  ffp1.setExpression( new ExpressionFormLine( new ExpressionVariable( fp1 ) ) );
  ffp1.setFactPattern( fp2 );
  cp.addFactPattern( ffp1 );
  m.addLhsItem( cp );
  final String actual = BRDRLPersistence.getInstance().marshal( m );
  final String expected = "rule \"model\"\n" +
      "dialect \"mvel\"\n" +
      "when\n" +
      "A DSL phrase\n" +
      ">$d : Data( )\n" +
      ">not ( Person( ) from $d\n" +
      ")\n" +
      "then\n" +
      "end\n";
  assertEqualsIgnoreWhitespace( expected,
                 actual );
}
org.drools.guvnor.models.commons.shared.ruleExpressionFormLine<init>

Popular methods of ExpressionFormLine

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Path (java.nio.file)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 15 Vim Plugins
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