Examples of Fluent


Examples of net.sf.kpex.prolog.Fluent

   */
  @Override
  public int exec(Prog p)
  {
    Term I = getArg(0);
    Fluent f;
    if (I instanceof CharReader)
    {
      f = new ClauseReader((I), p);
    }
    else
View Full Code Here

Examples of net.sf.kpex.prolog.Fluent

   */
  @Override
  public int exec(Prog p)
  {
    String s = ((Const) getArg(0)).getName();
    Fluent f = new CharWriter(s, p);
    return putArg(1, f, p);
  }
View Full Code Here

Examples of net.sf.kpex.prolog.Fluent

   */
  @Override
  public int exec(Prog p)
  {
    String s = ((Const) getArg(0)).getName();
    Fluent f = new ClauseWriter(s, p);
    return putArg(1, f, p);
  }
View Full Code Here

Examples of net.sf.kpex.prolog.Fluent

  }

  @Override
  public int exec(Prog p)
  {
    Fluent S = (Fluent) getArg(0);
    S.stop();
    return 1;
  }
View Full Code Here

Examples of net.sf.kpex.prolog.Fluent

   */
  @Override
  public int exec(Prog p)
  {
    Term I = getArg(0);
    Fluent f;
    if (I instanceof CharReader)
    {
      f = new CharReader(((CharReader) I), p);
    }
    else
View Full Code Here

Examples of net.sf.kpex.prolog.Fluent

  }

  @Override
  public int exec(Prog p)
  {
    Fluent F = (Fluent) getArg(0);
    Term R = F.isPersistent() ? Const.YES : Const.NO;
    return putArg(1, R, p);
  }
View Full Code Here

Examples of net.sf.kpex.prolog.Fluent

  }

  @Override
  public int exec(Prog p)
  {
    Fluent F = (Fluent) getArg(0);
    Const R = (Const) getArg(1);
    boolean yesno = !R.eq(Const.NO);
    F.setPersistent(yesno);
    return 1;
  }
View Full Code Here

Examples of org.apache.camel.builder.Fluent

    // Add the builder actions that are annotated with @Fluent(callOnElementEnd=true)
    if( currentBuilder!=null ) {
      Method[] methods = currentBuilder.getMethods();
      for (int i = 0; i < methods.length; i++) {
        Method method = methods[i];
        Fluent annotation = method.getAnnotation(Fluent.class);
        if( annotation!=null && annotation.callOnElementEnd() ) {
         
          if( method.getParameterTypes().length > 0 ) {
            throw new RuntimeException("Only methods with no parameters can annotated with @Fluent(callOnElementEnd=true): "+method);
          }
         
View Full Code Here

Examples of org.apache.camel.builder.Fluent

      if (!method.isAnnotationPresent(Fluent.class)) {
        continue;
      }
     
      // Use the fluent supplied name for the action, or the method name if not set.
      Fluent fluentAnnotation = method.getAnnotation(Fluent.class);
      if ( StringUtils.hasText(fluentAnnotation.value()) ?
          name.equals(fluentAnnotation.value()) :
          name.equals(method.getName()) ) {

        LinkedHashMap<String, Class> map = new LinkedHashMap<String, Class>();
        LinkedHashMap<String, FluentArg> amap = new LinkedHashMap<String, FluentArg>();
        Class<?>[] parameters = method.getParameterTypes();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.