Package org.apache.etch.compiler.ast

Examples of org.apache.etch.compiler.ast.Builtin.className()


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

      if (n.isBuiltin())
      {
        Builtin b = (Builtin) n;
        String cn = b.className();
        if (cn.endsWith( "?" ))
          cn = cn.substring( 0, cn.length()-1 );
       
        return String.format( "Validator_custom.Get( typeof(%s), %d, %s )",
          cn, type.dim(), b.allowSubclass() );
View Full Code Here


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

      if (n.isBuiltin())
      {
        Builtin b = (Builtin) n;
        String cn = b.className();
        if (cn.endsWith( "?" ))
          cn = cn.substring( 0, cn.length()-1 );
        return String.format( "Validator_custom.Get( typeof(%s), %d, %s )",
          cn, type.dim(), b.allowSubclass() );
      }
View Full Code Here

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

      if (n.isBuiltin()) {
        Builtin b = (Builtin) n;
        String cn = b.className();

        int i = cn.indexOf('<');
        if (i >= 0)
          cn = cn.substring(0, i);
       
View Full Code Here

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

      if (n.isBuiltin())
      {
        Builtin b = (Builtin) n;
        String cn = b.className();
       
        int i = cn.indexOf( '<' );
        if (i >= 0)
          cn = cn.substring( 0, i );
       
View Full Code Here

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

      if (n.isBuiltin())
      {
        Builtin b = (Builtin) n;
        String cn = b.className();
       
        int i = cn.indexOf( '<' );
        if (i >= 0)
          cn = cn.substring( 0, i );
       
View Full Code Here

      if (n == null)
        throw new IllegalArgumentException(String.format(
            "undefined or ambiguous name at line %d: %s", t.beginLine, t.image));
      if (n.isBuiltin()) {
        Builtin b = (Builtin) n;
        return nativeArrayName + b.className().substring(4);
      }
      if (n.isEnumx()) {
        return nativeArrayName + n.efqname(this);
      } else {
        return type.intf().name() + "::" + nativeArrayName + n.efqname(this);
View Full Code Here

      if (n == null)
        throw new IllegalArgumentException(String.format(
            "undefined or ambiguous name at line %d: %s", t.beginLine, t.image));
      if (n.isBuiltin()) {
        Builtin b = (Builtin) n;
        if (n.efqname(this).equals("EtchDate")) return b.className();
        if (n.efqname(this).equals("EtchList")) return b.className()+"<EtchObjectPtr> ";
        if (n.efqname(this).equals("EtchHashTable")) return b.className()+"<EtchObjectPtr, EtchObjectPtr> ";
        if (n.efqname(this).equals("EtchHashSet")) return b.className()+"<EtchObjectPtr> ";
        throw new IllegalArgumentException(String.format(
            "unable to find correct Etch data type for type at line %d: %s", t.beginLine, n.efqname(this)));
View Full Code Here

        throw new IllegalArgumentException(String.format(
            "undefined or ambiguous name at line %d: %s", t.beginLine, t.image));
      if (n.isBuiltin()) {
        Builtin b = (Builtin) n;
        if (n.efqname(this).equals("EtchDate")) return b.className();
        if (n.efqname(this).equals("EtchList")) return b.className()+"<EtchObjectPtr> ";
        if (n.efqname(this).equals("EtchHashTable")) return b.className()+"<EtchObjectPtr, EtchObjectPtr> ";
        if (n.efqname(this).equals("EtchHashSet")) return b.className()+"<EtchObjectPtr> ";
        throw new IllegalArgumentException(String.format(
            "unable to find correct Etch data type for type at line %d: %s", t.beginLine, n.efqname(this)));
      }
View Full Code Here

            "undefined or ambiguous name at line %d: %s", t.beginLine, t.image));
      if (n.isBuiltin()) {
        Builtin b = (Builtin) n;
        if (n.efqname(this).equals("EtchDate")) return b.className();
        if (n.efqname(this).equals("EtchList")) return b.className()+"<EtchObjectPtr> ";
        if (n.efqname(this).equals("EtchHashTable")) return b.className()+"<EtchObjectPtr, EtchObjectPtr> ";
        if (n.efqname(this).equals("EtchHashSet")) return b.className()+"<EtchObjectPtr> ";
        throw new IllegalArgumentException(String.format(
            "unable to find correct Etch data type for type at line %d: %s", t.beginLine, n.efqname(this)));
      }
      if (n.isEnumx()) {
View Full Code Here

      if (n.isBuiltin()) {
        Builtin b = (Builtin) n;
        if (n.efqname(this).equals("EtchDate")) return b.className();
        if (n.efqname(this).equals("EtchList")) return b.className()+"<EtchObjectPtr> ";
        if (n.efqname(this).equals("EtchHashTable")) return b.className()+"<EtchObjectPtr, EtchObjectPtr> ";
        if (n.efqname(this).equals("EtchHashSet")) return b.className()+"<EtchObjectPtr> ";
        throw new IllegalArgumentException(String.format(
            "unable to find correct Etch data type for type at line %d: %s", t.beginLine, n.efqname(this)));
      }
      if (n.isEnumx()) {
        return n.efqname(this);
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.