Package org.apache.etch.compiler.ast

Examples of org.apache.etch.compiler.ast.Thrown


        + ", false )";
    }

    if (named instanceof Thrown)
    {
      Thrown thrown = (Thrown) named;
      Except e = (Except) thrown.getNamed();
      return "Validator_custom.Get( typeof ( " + e.efqname( this )
        + " ) , 0,true )";
    }

    if (named instanceof Item)
View Full Code Here


      return "Validator_custom.getCustom( "+type.getNamed( type.intf() ).efqname( this )+".class, "+type.dim()+" )";
    }

    if (named instanceof Thrown)
    {
      Thrown thrown = (Thrown) named;
      Except e = (Except) thrown.getNamed();
      return "Validator_custom.getCustom( "+e.efqname( this )+".class, 0 )";
    }

    if (named instanceof Item)
      return "Validator_boolean.get( 0 )";
View Full Code Here

        + ", false )";
    }

    if (named instanceof Thrown)
    {
      Thrown thrown = (Thrown) named;
      Except e = (Except) thrown.getNamed();
      return "Validator_custom.Get( typeof ( " + e.efqname( this )
        + " ) , 0,true )";
    }

    if (named instanceof Item)
View Full Code Here

      return "";
    }

    if (named instanceof Thrown) {
      Thrown thrown = (Thrown) named;
      Except e = (Except) thrown.getNamed();
      return String.format("(etch_object*)etchvtor_custom_get( ETCHTYPEB_USER,get_dynamic_classid_unique(&%s), %s_valufact_get_static()->_mt_%s_%s,0)",
            getClassIdVarName(thrown),getExcept(thrown).service().name().toString().toLowerCase(),getExcept(thrown).service().name().toString().toLowerCase(),thrown);
    }

    if (named instanceof Item)
View Full Code Here

        ((Message) m).returnDescr().add( s );
      }
      else if (type == Type.Throws)
      {
//        System.out.printf( "adding to t.descr (%s): %s\n", name, s );
        Thrown t = ((Message) m).getThrown( name );
        if (t != null)
          t.descr().add( s );
        else
          System.out.printf( "*** warning: cannot document thrown %s of %s\n", name, m.name() );
      }
      else if (type != Type.None)
      {
View Full Code Here

        n.efqname( this ), type.dim() );
    }

    if (named instanceof Thrown)
    {
      Thrown thrown = (Thrown) named;
      Except e = (Except) thrown.getNamed();
      return String.format( "Validator_custom.get( %s.class, 0, true )", e.efqname( this ) );
    }

    if (named instanceof Item)
      return "Validator_boolean.get( 0 )";
View Full Code Here

        n.efqname( this ), type.dim() );
    }

    if (named instanceof Thrown)
    {
      Thrown thrown = (Thrown) named;
      Except e = (Except) thrown.getNamed();
      return String.format( "Validator_custom.get( %s.class, 0, true )", e.efqname( this ) );
    }

    if (named instanceof Item)
      return "Validator_boolean.get( 0 )";
View Full Code Here

          "EtchValidatorCustom::Get(runtime, %d, %s::TYPE(), false, tmpValue);",
          type.dim(), n.efqname(this));
    }

    if (named instanceof Thrown) {
      Thrown thrown = (Thrown) named;
      Except e = (Except) thrown.getNamed();
      String efgName = this.getExcept(thrown).service().name() + "::"
          + e.efqname(this);
      return String.format(
          "EtchValidatorCustom::Get(runtime, 0, %s::TYPE(), true, tmpValue);"
          , efgName);
View Full Code Here

      return "";
    }

    if (named instanceof Thrown) {
      Thrown thrown = (Thrown) named;
      Except e = (Except) thrown.getNamed();
      return String.format("(etch_object*)etchvtor_custom_get( ETCHTYPEB_USER,get_dynamic_classid_unique(&%s), %s_valufact_get_static()->_mt_%s_%s,0)",
            getClassIdVarName(thrown),getExcept(thrown).service().name().toString().toLowerCase(),getExcept(thrown).service().name().toString().toLowerCase(),thrown);
    }

    if (named instanceof Item)
View Full Code Here

TOP

Related Classes of org.apache.etch.compiler.ast.Thrown

Copyright © 2018 www.massapicom. 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.