Package com.google.code.vimsztool.omni

Examples of com.google.code.vimsztool.omni.ClassMetaInfoManager


  public void verifyBreakpoint(String mainClass) {
    Debugger debugger = Debugger.getInstance();
    CompilerContext ctx = debugger.getCompilerContext();
    if (ctx == null) return ;
   
    ClassMetaInfoManager cmm =ctx.getClassMetaInfoManager();
   
    List<Breakpoint> invalidBreakPoints = new ArrayList<Breakpoint>();
   
    for (Breakpoint bp : allBreakpoints) {
      if (bp.getMainClass().equals(mainClass)) {
View Full Code Here


  }

  public String addBreakpoint(String mainClass, int lineNum,String conExp) {
    Debugger debugger = Debugger.getInstance();
    CompilerContext ctx = debugger.getCompilerContext();
    ClassMetaInfoManager cmm = ctx.getClassMetaInfoManager();
   
    ClassInfo metaInfo = cmm.getMetaInfo(mainClass);
    if (metaInfo == null) return "failure";
    Breakpoint breakpoint = null;
    if (!metaInfo.getLineNums().contains(lineNum)) {
      for (String innerclassName : metaInfo.getInnerClasses()  ) {
        ClassInfo innerClassInfo = cmm.getMetaInfo(innerclassName);
        if (innerClassInfo !=null && innerClassInfo.getLineNums().contains(lineNum)) {
          breakpoint = new Breakpoint(mainClass, innerclassName, lineNum);
          break;
        }
      }
View Full Code Here

      this.projectRoot = abpath;
      this.outputDir = abpath;
      this.srcLocations.add(abpath);
      try { classPathUrls.add(file.toURL()); } catch (Exception e) {}
    }
    this.classMetaInfoManager = new ClassMetaInfoManager(this);
    initClassLoader();
  }
View Full Code Here

  public String execute() {
    String classPathXml = params.get(SzjdeConstants.PARAM_CLASSPATHXML);
    String sourceFile = params.get(SzjdeConstants.PARAM_SOURCEFILE);
    CompilerContext cc=getCompilerContext(classPathXml);
    String className = cc.buildClassName(sourceFile);
    ClassMetaInfoManager cmm = cc.getClassMetaInfoManager();
    List<String> result = cmm.getTypeHierarchy(className);
    StringBuilder sb = new StringBuilder();
    for (String line : result) {
      sb.append(line).append("\n");
    }
    return sb.toString();
View Full Code Here

  public String execute() {
    String classPathXml = params.get(SzjdeConstants.PARAM_CLASSPATHXML);
    String className = params.get(SzjdeConstants.PARAM_CLASS_NAME);
    String sourceType = params.get(SzjdeConstants.PARAM_SOURCE_TYPE);
    CompilerContext cc = getCompilerContext(classPathXml);
    ClassMetaInfoManager cmm = cc.getClassMetaInfoManager();

    if (sourceType != null && sourceType.equals("impl")) {
      ClassInfo classInfo = cmm.getMetaInfo(className);
      if (classInfo != null) {
        Set<String> subNames = classInfo.getSubNames();
        if (subNames.size() == 1) {
          className = subNames.toArray(new String[]{})[0];
        }
View Full Code Here

  public String execute() {
    String classPathXml = params.get(SzjdeConstants.PARAM_CLASSPATHXML);
    CompilerContext ctx = getCompilerContext(classPathXml);
    List<URL> urls = ctx.getClassPathUrls();
    ClassMetaInfoManager cmm = ctx.getClassMetaInfoManager();
   
    for (URL url : urls) {
      String path = url.getPath();
      if (path.endsWith(".jar")) {
        cmm.loadMetaInfoInJar(path);
      }
    }
    cmm.constructAllSubNames();
    return "success";
  }
View Full Code Here

   
    String sourceType = params.get(SzjdeConstants.PARAM_SOURCE_TYPE);
    CompilerContext cc = getCompilerContext(classPathXml);

    if (sourceType != null && sourceType.equals("impl")) {
      ClassMetaInfoManager cmm = cc.getClassMetaInfoManager();
      ClassInfo classInfo = cmm.getMetaInfo(className);
      if (classInfo != null) {
        Set<String> subNames = classInfo.getSubNames();
        if (subNames.size() == 1) {
          className = subNames.toArray(new String[]{})[0];
        }
View Full Code Here

    JDTCompiler compiler =new JDTCompiler(cc);
    String[] allSrcFiles = new String[] {};
    if (sourceFile.equals("All")) {
      allSrcFiles = cc.getAllSourceFiles();
    } else {
      ClassMetaInfoManager metaInfoManager = cc.getClassMetaInfoManager();
      String targetClassName=cc.buildClassName(sourceFile);
      Set<String> dependentClasses = metaInfoManager.getDependentClasses(targetClassName);
      List<String> srcFileList = new ArrayList<String>();
      for (String depClass : dependentClasses ) {
        String rtlPathName = depClass.replace(".", "/") + ".java";
        String sourcePath = cc.findSourceFileInSrcPath(rtlPathName);
        if (sourcePath != null ) {
View Full Code Here

TOP

Related Classes of com.google.code.vimsztool.omni.ClassMetaInfoManager

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.