Examples of SourceFile


Examples of flash.tools.debugger.SourceFile

  {
    boolean yes = false;
    Location l = getCurrentLocation();
    if (l != null)
    {
      SourceFile file = l.getFile();
      if (file != null && file.getId() == module && l.getLine() == line)
        yes = true;
    }
    return yes;
  }
View Full Code Here

Examples of flash.tools.debugger.SourceFile

        else if (nSourceFiles > 1)
        {
            String s = getLocalizationManager().getLocalizedTextString("ambiguousMatchingFilenames") + m_newline; //$NON-NLS-1$
            for (int i = 0; i < nSourceFiles; i++)
            {
                SourceFile sourceFile = sourceFiles[i];
                s += " " + sourceFile.getName() + "#" + sourceFile.getId(); //$NON-NLS-1$ //$NON-NLS-2$
                if (i < nSourceFiles - 1)
                    s += m_newline;
            }
            throw new AmbiguousException(s);
        }
View Full Code Here

Examples of flash.tools.debugger.SourceFile

   * @see flash.tools.debugger.Session#clearBreakpoint(flash.tools.debugger.Location)
   */
  public Location clearBreakpoint(Location local)
  {
    /* first find it */
    SourceFile source = local.getFile();
    int fileId = source.getId();
    int lineNum = local.getLine();
    int bp = DLocation.encodeId(fileId, lineNum);
    int isolateId = local.getIsolateId();
    Location l = null;
    l = m_manager.getBreakpoint(bp, isolateId);
View Full Code Here

Examples of flash.tools.debugger.SourceFile

    int size = files.size();
    for(int i=0; i<size; i++)
    {
      boolean addIt = false;

      SourceFile fi = files.get(i);
      // no filter currently in place so we add the file as long
      // as no duplicates exist.  We use the original Swd full
      // name for matching.
      String fName = fi.getRawName();
      if (m_swfFilter == null)
      {
        // If it exists, then we don't add it!
        if (names.get(fName) == null)
          addIt = true;
View Full Code Here

Examples of flash.tools.debugger.SourceFile

     * @param f
     * @return
     */
    public SourceFile similarFileInSwf(SwfInfo info, SourceFile f) throws InProgressException
    {
        SourceFile hit = null;
    SourceFile[] files = info.getSourceList(m_session);
    if (!info.isProcessingComplete())
      throw new InProgressException();

    for(int i=0; i<files.length; i++)
View Full Code Here

Examples of flash.tools.debugger.SourceFile

    // If the matchString already starts with "." (e.g. ".as" or ".mxml"), then dotMatchString
    // will be equal to matchString; otherwise, dotMatchString will be "." + matchString
    String dotMatchString = (matchString.startsWith(".")) ? matchString : ("." + matchString); //$NON-NLS-1$ //$NON-NLS-2$
        for (int i = 0; i < n; i++)
        {
            SourceFile sourceFile = files[i];
      boolean pathExists = (usePath && sourceFile.getFullPath().matches(".*[/\\\\].*")); //$NON-NLS-1$
            String name = pathExists ? sourceFile.getFullPath() : sourceFile.getName();

      // if we are using the full path string, then prefix a '.' to our matching string so that abc.as and Gabc.as don't both hit
      String match = (usePath && pathExists) ? dotMatchString : matchString;

            match = match.replace('/', '.')// get rid of path identifiers and use dots
View Full Code Here

Examples of jasm.attributes.SourceFile

        new ArrayList<JvmType.Clazz>(), modifiers);

    this.filename = module.filename();

    if(filename != null) {
      cf.attributes().add(new SourceFile(filename));
    }

    boolean addMainLauncher = false;

    HashMap<JvmConstant,Integer> constants = new HashMap<JvmConstant,Integer>();
View Full Code Here

Examples of org.apache.bcel.classfile.SourceFile

        this.file_name = file_name;
        this.access_flags = access_flags;
        this.cp = cp;
        // Put everything needed by default into the constant pool and the vectors
        if (file_name != null) {
            addAttribute(new SourceFile(cp.addUtf8("SourceFile"), 2, cp.addUtf8(file_name), cp
                    .getConstantPool()));
        }
        class_name_index = cp.addClass(class_name);
        superclass_name_index = cp.addClass(super_class_name);
        if (interfaces != null) {
View Full Code Here

Examples of org.apache.harmony.archive.internal.pack200.ClassFileEntry.SourceFile

    classFile.superClass = cp.indexOf(cfSuper);
    // TODO placate format of file for writing purposes
    classFile.interfaces = new int[0];
    classFile.fields = new int[0];
    classFile.methods = new int[0];
    SourceFile sf;
    classFile.attributes = new ClassFileEntry.Attribute[] { sf = new ClassFileEntry.SourceFile(classThis[classNum+ ".java") };
    cp.add(sf);

    // sort CP according to cp_All
    cp.resolve();
View Full Code Here

Examples of org.aspectj.apache.bcel.classfile.SourceFile

    this.superclassname = superclassname;
    this.filename = filename;
    this.modifiers = modifiers;
    this.cpool = cpool;
    if (filename != null) {
      addAttribute(new SourceFile(cpool.addUtf8("SourceFile"), 2, cpool.addUtf8(filename), cpool));
    }
    this.classnameIndex = cpool.addClass(classname);
    this.superclassnameIndex = cpool.addClass(superclassname);
    if (interfacenames != null) {
      for (String interfacename : interfacenames) {
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.