Package org.apache.etch.compiler.ast

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


    }

    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)
      return "Validator_boolean.Get( 0 )";
View Full Code Here


    }

    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

    }

    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)
      return "Validator_boolean.Get( 0 )";
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

    Named<?> n = p.type().getNamed(p.type().intf());
    return "CLASSID_" + n.efqname(this).toUpperCase();
  }

  public String getClassIdVarName(Thrown t) {
    Except p = (Except) t.getNamed();
    return "CLASSID_" + p.service().name().toString().toUpperCase() + "_"
        + p.name().toString().toUpperCase();
  }
View Full Code Here

    return "CLASSID_" + p.service().name().toString().toUpperCase() + "_"
        + p.name().toString().toUpperCase();
  }

  public Except getExcept(Thrown t) {
    Except e = (Except) t.getNamed();
    return e;
  }
View Full Code Here

    }

    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

    }

    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

          return String.format(
              "EtchValidatorCustom::Get(runtime, %d, %s::TYPE(), true, tmpValue);",
              type.dim(), s
              .service().name() + "::" + n.efqname(this));
        }
        Except e = (Except) n;
        return String.format(
            "EtchValidatorCustom::Get(runtime, %d, %s::TYPE(), true, tmpValue);", type.dim(), e
            .service().name() + "::" + n.efqname(this));
      }
      // Don't allow subclassing for externs or etch defined enums.
      if (!(n.isExtern() || n.isEnumx()))
        Assertion.check(n.isExtern() || n.isEnumx(),
            "n.isExtern() || n.isEnumx(): " + n);
      Enumx e = (Enumx) n;
      return String.format(
          "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);
    }
    if (named instanceof Item)
View Full Code Here

    Named<?> n = p.type().getNamed(p.type().intf());
    return n.efqname(this);
  }

  public String getClassIdVarName(Thrown t) {
    Except p = (Except) t.getNamed();
    return p.service().name() + "::" + p.name().toString();
  }
View Full Code Here

TOP

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

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.