Package com.google.gwt.dev.jjs

Examples of com.google.gwt.dev.jjs.Correlation


public abstract class AbstractMember implements Member {
  private final String jsName;
  private final String sourceLocation;

  public AbstractMember(SourceInfo info) {
    Correlation nameCorrelation = info.getPrimaryCorrelation(Axis.JS_NAME);
    if (nameCorrelation != null) {
      jsName = nameCorrelation.getName().getShortIdent();
    } else {
      jsName = null;
    }
    sourceLocation = info.getFileName();
  }
View Full Code Here


          origins.add(new OriginImpl(c.getOrigin()));
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getPrimaryCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, origins,
          literalType, fragment, length);
      storyCache.put(info, theStory);
View Full Code Here

          origins.add(new OriginImpl(c.getOrigin()));
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getPrimaryCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, origins,
          literalType, fragment, length);
      storyCache.put(info, theStory);
View Full Code Here

    if (!(sourceInfo instanceof SourceInfoCorrelation)) {
      return null;
    }

    Correlation correlation = ((SourceInfoCorrelation) sourceInfo).getPrimaryCorrelation();
    if (correlation == null) {
      return null;
    }

    // Conserve space by not recording the package name. The sourcemap already contains the full
    // path of the Java file (in the "sources" field), which is usually enough to identify
    // the package. (The name may be a synthetic method name.)
    return correlation.getIdent();
  }
View Full Code Here

          members.add(m);
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, literalType, fragment, length);
      storyCache.put(info, theStory);
    } else {
View Full Code Here

          members.add(m);
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, literalType,
          fragment, length);
      storyCache.put(info, theStory);
View Full Code Here

  protected String getJavaName(SourceInfo sourceInfo) {
    // We can discard Unknown or not-so-valid (eg. com.google.gwt.dev.js.ast.JsProgram)
    // sourceInfo
    String rangeName = null;
    if (sourceInfo instanceof SourceInfoCorrelation) {
      Correlation correlation = ((SourceInfoCorrelation) sourceInfo).getPrimaryCorrelation();
      if (correlation != null) {
        // We can reduce name sizes by removing the left part corresponding to the
        // package name, eg. com.google.gwt.client. Because this is already in the file name.
        // This name includes static/synth method names
        rangeName = correlation.getIdent();
      }
    }
    return rangeName;
  }
View Full Code Here

          members.add(m);
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, literalType, fragment, length);
      storyCache.put(info, theStory);
    } else {
View Full Code Here

          origins.add(new OriginImpl(c.getOrigin()));
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getPrimaryCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, origins,
          literalType, fragment, length);
      storyCache.put(info, theStory);
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.jjs.Correlation

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.