Package com.google.gwt.core.ext.soyc.coderef.EntityDescriptor

Examples of com.google.gwt.core.ext.soyc.coderef.EntityDescriptor.Fragment


      }
      JSONArray frags = jsonObject.getJSONArray(EntityRecorder.FRAGMENTS);
      for (int i = 0; i < frags.length(); i++) {
        JSONObject frag = frags.getJSONObject(i);
        entity.addFragment(
            new Fragment(frag.getInt(EntityRecorder.FRAGMENT_ID),
                frag.getInt(EntityRecorder.FRAGMENT_SIZE)));
      }
    }
View Full Code Here


        JsName name = kv.getKey();
        int size = kv.getValue();
        // find method
        JMethod method = jjsmap.nameToMethod(name);
        if (method != null) {
          codeGraph.methodDescriptorFrom(method).addFragment(new Fragment(i, size));
          continue;
        }
        // find field
        JField field = jjsmap.nameToField(name);
        if ((field != null) && (field.getEnclosingType() != null)) {
          codeGraph.classDescriptorFrom(field.getEnclosingType()).fieldFrom(field)
              .addFragment(new Fragment(i, size));
          continue;
        }
        // find class
        JClassType type = jjsmap.nameToType(name);
        if (type != null) {
          codeGraph.classDescriptorFrom(type).addFragment(new Fragment(i, size));
          continue;
        }
        // otherwise is a string or variable
        this.otherSizes[i] += size;
      }
View Full Code Here

        JsName name = kv.getKey();
        int size = kv.getValue();
        // find method
        JMethod method = jjsmap.nameToMethod(name);
        if (method != null) {
          codeGraph.methodDescriptorFrom(method).addFragment(new Fragment(i, size));
          continue;
        }
        // find field
        JField field = jjsmap.nameToField(name);
        if ((field != null) && (field.getEnclosingType() != null)) {
          codeGraph.classDescriptorFrom(field.getEnclosingType()).fieldFrom(field)
              .addFragment(new Fragment(i, size));
          continue;
        }
        // find class
        JClassType type = jjsmap.nameToType(name);
        if (type != null) {
          codeGraph.classDescriptorFrom(type).addFragment(new Fragment(i, size));
          continue;
        }
        // otherwise is a string or variable
        this.otherSizes[i] += size;
      }
View Full Code Here

      }
      JSONArray frags = jsonObject.getJSONArray(EntityRecorder.FRAGMENTS);
      for (int i = 0; i < frags.length(); i++) {
        JSONObject frag = frags.getJSONObject(i);
        entity.addFragment(
            new Fragment(frag.getInt(EntityRecorder.FRAGMENT_ID),
                frag.getInt(EntityRecorder.FRAGMENT_SIZE)));
      }
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.core.ext.soyc.coderef.EntityDescriptor.Fragment

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.