Examples of dim()


Examples of org.apache.etch.compiler.ast.TypeRef.dim()

      Parameter param = (Parameter) named;
      TypeRef type = param.type();

      if (type.isBuiltin())
        return String.format("(etch_object*)etchvtor_%s_get( %d )", getValidatorStringForParam(param),
            type.dim());

      Named<?> n = type.getNamed(type.intf());

      if (n.isBuiltin()) {
        Builtin b = (Builtin) n;
View Full Code Here

Examples of org.apache.etch.compiler.ast.TypeRef.dim()


      if (n.isStruct() || n.isExcept() || n.isEnumx())
        return String.format(
            "(etch_object*)etchvtor_custom_get(ETCHTYPEB_USER, get_dynamic_classid_unique(&CLASSID_%s), %s_valufact_get_static()->_mt_%s, %d)",
                 n.efqname(this).toUpperCase(), getDefiningServiceNameOf(type), n.efqname(this), type.dim());

      if (n.isExtern())
      {
        Assertion.check(false,"extern type not supported for " + n );
      }
View Full Code Here

Examples of org.apache.etch.compiler.ast.TypeRef.dim()

      Parameter param = (Parameter) named;
      TypeRef type = param.type();

      if (type.isBuiltin())
        return String.format( "Validator_%s.get( %d )",
          type.type(), type.dim() );

      Named<?> n = type.getNamed( type.intf() );

      if (n.isBuiltin())
      {
View Full Code Here

Examples of org.apache.etch.compiler.ast.TypeRef.dim()

        int i = cn.indexOf( '<' );
        if (i >= 0)
          cn = cn.substring( 0, i );
       
        return String.format( "Validator_custom.get( %s.class, %d, %s )",
          cn, type.dim(), b.allowSubclass() );
      }

      // Allow subclassing for etch defined structs and externs.

      if (n.isStruct() || n.isExcept())
View Full Code Here

Examples of org.apache.etch.compiler.ast.TypeRef.dim()

      // Allow subclassing for etch defined structs and externs.

      if (n.isStruct() || n.isExcept())
        return String.format( "Validator_custom.get( %s.class, %d, true )",
          n.efqname( this ), type.dim() );

      // Don't allow subclassing for externs or etch defined enums.

      if (!(n.isExtern() || n.isEnumx()))
        Assertion.check( n.isExtern() || n.isEnumx(),
View Full Code Here

Examples of org.apache.etch.compiler.ast.TypeRef.dim()

      if (!(n.isExtern() || n.isEnumx()))
        Assertion.check( n.isExtern() || n.isEnumx(),
          "n.isExtern() || n.isEnumx(): "+n );

      return String.format( "Validator_custom.get( %s.class, %d, false )",
        n.efqname( this ), type.dim() );
    }

    if (named instanceof Thrown)
    {
      Thrown thrown = (Thrown) named;
View Full Code Here

Examples of org.apache.etch.compiler.ast.TypeRef.dim()

      Parameter param = (Parameter) named;
      TypeRef type = param.type();

      if (type.isBuiltin())
        return String.format( "Validator_%s.get( %d )",
          type.type(), type.dim() );

      Named<?> n = type.getNamed( type.intf() );

      if (n.isBuiltin())
      {
View Full Code Here

Examples of org.apache.etch.compiler.ast.TypeRef.dim()

        int i = cn.indexOf( '<' );
        if (i >= 0)
          cn = cn.substring( 0, i );
       
        return String.format( "Validator_custom.get( %s.class, %d, %s )",
          cn, type.dim(), b.allowSubclass() );
      }

      // Allow subclassing for etch defined structs and externs.

      if (n.isStruct() || n.isExcept())
View Full Code Here

Examples of org.apache.etch.compiler.ast.TypeRef.dim()

      // Allow subclassing for etch defined structs and externs.

      if (n.isStruct() || n.isExcept())
        return String.format( "Validator_custom.get( %s.class, %d, true )",
          n.efqname( this ), type.dim() );

      // Don't allow subclassing for externs or etch defined enums.

      if (!(n.isExtern() || n.isEnumx()))
        Assertion.check( n.isExtern() || n.isEnumx(),
View Full Code Here

Examples of org.apache.etch.compiler.ast.TypeRef.dim()

      if (!(n.isExtern() || n.isEnumx()))
        Assertion.check( n.isExtern() || n.isEnumx(),
          "n.isExtern() || n.isEnumx(): "+n );

      return String.format( "Validator_custom.get( %s.class, %d, false )",
        n.efqname( this ), type.dim() );
    }

    if (named instanceof Thrown)
    {
      Thrown thrown = (Thrown) named;
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.