Do whatever processing that needs to be done on this directory.
@return caller specific information about this directory.
497922
public Object processThisDirectory(File fileDir, Object objDirID)
    {
        int iCounter = 0;
        try {
            String directoryName = fileDir.getName();
        
            boolean containsFiles = this.directoryContainsFiles(fileDir);
            
            ClassProject.CodeType codeType = (ClassProject.CodeType)this.getProperties().get("codeType");
            String projectString = this.getProperty("projectID");
            int projectID = Integer.parseInt(Converter.stripNonNumber(projectString));
                    
            Integer intParent = (Integer)objDirID;
            if (intParent != null)
            {
                Object bookmark = null;
                m_recPackages.addNew();
                m_recPackages.setKeyArea(Packages.NAME_KEY);
                m_recPackages.getField(Packages.PARENT_FOLDER_ID).setValue(intParent);
                m_recPackages.getField(Packages.NAME).setString(directoryName);
                m_recPackages.getField(Packages.CLASS_PROJECT_ID).setData(null);
                boolean recordExists = false;
                if ((m_recPackages.seek(">=") == true)
                    && (m_recPackages.getField(Packages.PARENT_FOLDER_ID).getValue() == intParent)
                    && (m_recPackages.getField(Packages.NAME).toString().equalsIgnoreCase(directoryName)))
                        recordExists = true;
                if (recordExists)
                { // Good, one exists already, use it (note: this reads the default [0] if it exists)
                    bookmark = m_recPackages.getHandle(DBConstants.BOOKMARK_HANDLE);
                    ClassProject.CodeType fieldCodeType = ((CodeTypeField)m_recPackages.getField(Packages.CODE_TYPE)).getCodeType();
                    m_recPackages.edit(); // Always updates the "last updated" time
                    if (containsFiles)
                    {
                        if ((m_recPackages.getField(Packages.CLASS_PROJECT_ID).getValue() == 0)   // No project yet, I own it
                                || (ClassProject.CodeType.THICK == codeType)    // If there are files in a base dir, I own it
                                || (fieldCodeType == codeType)  // Another dir of the same type is default, now I own it
                                || (ClassProject.CodeType.THICK != codeType) && (ClassProject.CodeType.THICK != fieldCodeType))   // base doesn't own it, I own it
                        {
                            m_recPackages.getField(Packages.CLASS_PROJECT_ID).setValue(projectID);  // If there are files, I own it.
                            ((CodeTypeField)m_recPackages.getField(Packages.CODE_TYPE)).setCodeType(codeType);
                        }
                    }
                    else
                    {
                        if (m_recPackages.getField(Packages.CLASS_PROJECT_ID).getValue() == projectID)
                            if (fieldCodeType == codeType)
                        { // That's weird. I should not own it if there are no files in here.
                            m_recPackages.getField(Packages.CLASS_PROJECT_ID).setValue(0); // This says it is empty (will be replaced when I find a dir with files in it)
                        }
                    }
                    m_recPackages.handleRecordChange(m_recPackages.getField(Packages.PARENT_FOLDER_ID), DBConstants.FIELD_CHANGED_TYPE, true);     // init this field override for other value
                    m_recPackages.set();                        
                }
                else
                { // None exists, create a default entry
                    m_recPackages.addNew();
                    m_recPackages.getField(Packages.PARENT_FOLDER_ID).setValue(intParent);
                    m_recPackages.getField(Packages.NAME).setString(directoryName);
                    if (containsFiles)
                        m_recPackages.getField(Packages.CLASS_PROJECT_ID).setValue(projectID);  // If there are files, I own it.
                    else
                        m_recPackages.getField(Packages.CLASS_PROJECT_ID).setValue(0);
                    ((CodeTypeField)m_recPackages.getField(Packages.CODE_TYPE)).setCodeType(codeType);
                    m_recPackages.add();
                    bookmark = m_recPackages.getLastModified(DBConstants.BOOKMARK_HANDLE);                      
                }
        
                // Now claim ownership of any empty directories above this
                while (m_recPackages.getField(Packages.PARENT_FOLDER_ID).getValue() != 0)
                {
                    int parentFolderID = (int)m_recPackages.getField(Packages.PARENT_FOLDER_ID).getValue();
                    m_recPackages.setKeyArea(Packages.ID_KEY);
                    m_recPackages.addNew();
                    m_recPackages.getField(Packages.ID).setValue(parentFolderID);
                    if ((!m_recPackages.seek(null)) || (m_recPackages.getEditMode() != DBConstants.EDIT_CURRENT))
                        break;
                    if (m_recPackages.getField(Packages.CLASS_PROJECT_ID).getValue() == 0)
                    { // Any empty parents belong to the same project
                        m_recPackages.edit();
                        if (containsFiles)
                            m_recPackages.getField(Packages.CLASS_PROJECT_ID).setValue(projectID);  // If there are files in child, I own it (for now)
                        else
                            m_recPackages.getField(Packages.CLASS_PROJECT_ID).setValue(0);
                        ((CodeTypeField)m_recPackages.getField(Packages.CODE_TYPE)).setCodeType(codeType);
                        m_recPackages.set();
                    }
                }
        
                m_recPackages.setHandle(bookmark, DBConstants.BOOKMARK_HANDLE);
                iCounter = (int)m_recPackages.getField(Packages.ID).getValue();
            }
        } catch (DBException ex)    {
            ex.printStackTrace();
        }
        return new Integer(iCounter);
    }
480860
public function process()
    {
        if (!$this->canRun(false)) {
            return $this;
        }
        $this->runNow(!$this->isAlwaysTask());
        return $this;
    }
1218569
public static StackTraceElement getCallerStackTraceElement () {
		StackTraceElement callerStackTraceElement = null;

		StackTraceElement[] stackTraceElements = Thread.currentThread ().getStackTrace ();
		if (stackTraceElements != null) {
			if (stackTraceElements.length > 3) {
				callerStackTraceElement = stackTraceElements[3];
			}
		}

		return callerStackTraceElement;
	}
19736
protected function getIterator()
    {
        if ($this->iterator === null && $this->isExists()) {
            $dirIterator = new DirectoryIterator($this->getPathname());
            $this->iterator = new CallbackFilterIterator($dirIterator, function ($current, $key, $iterator) {
                return !$iterator->isDot();
            });
        }

        return $this->iterator;
    }
237992
public boolean isDirectory() {
        if (this.file != null) {
            return this.file.isDirectory();
        }

        if (this.header != null) {
            if (this.header.linkFlag == TarHeader.LF_DIR) {
                return true;
            }

            if (this.header.name.toString().endsWith("/")) {
                return true;
            }
        }

        return false;
    }
1335385
public File getDir() {
		if (this.dir == null) {
			synchronized (this) {
				byte[] hash = generateHash(this.sourceClass);
				this.dir = new File(getTempDirectory(), toHexString(hash));
				this.dir.mkdirs();
				Assert.state(this.dir.exists(),
						() -> "Unable to create temp directory " + this.dir);
			}
		}
		return this.dir;
	}
1296444
public function processar()
    {
        if ($this->isProcessado()) {
            return $this;
        }

        if (method_exists($this, 'init')) {
            call_user_func([$this, 'init']);
        }

        foreach ($this->file as $linha) {
            $inicio = $this->rem(1, 1, $linha);

            if ($inicio == '0') {
                $this->processarHeader($linha);
            } elseif ($inicio == '9') {
                $this->processarTrailer($linha);
            } else {
                $this->incrementDetalhe();
                if ($this->processarDetalhe($linha) === false) {
                    unset($this->detalhe[$this->increment]);
                    $this->increment--;
                }
            }
        }
        if (method_exists($this, 'finalize')) {
            call_user_func([$this, 'finalize']);
        }

        return $this->setProcessado();
    }
711944
protected function _process()
    {
        if ($this->__isProcessed === true) {
            return $this;
        }

        $limit = $this->getLimit();
        if (is_null($limit)) {
            $this->setPagesNumber(1);
            $this->setOffset(0);
        } else {
            $this->setPagesNumber(round($this->getItemsNumber() / $this->getLimit()));
        }

        $this->__isProcessed = true;
        return $this;
    }
802767
public String getCallId() {
		if(this.sessionCreatingDialog != null)
			return this.sessionCreatingDialog.getCallId().getCallId();
		else if(sessionCreatingTransactionRequest != null)
			return ((CallIdHeader)this.sessionCreatingTransactionRequest.getMessage().getHeader(CallIdHeader.NAME)).getCallId();
		else if(key != null)
			return key.getCallId();
		else
			return null;
	}
905834
private File [] getSourceDirectories ()
  {
    final Set <File> directories = new LinkedHashSet <> ();
    if (this.sourceDirectories != null && this.sourceDirectories.length > 0)
    {
      directories.addAll (Arrays.asList (this.sourceDirectories));
    }
    else
    {
      if (this.defaultGrammarDirectoryJavaCC != null)
      {
        directories.add (this.defaultGrammarDirectoryJavaCC);
      }
      if (this.defaultGrammarDirectoryJJTree != null)
      {
        directories.add (this.defaultGrammarDirectoryJJTree);
      }
      if (this.defaultGrammarDirectoryJTB != null)
      {
        directories.add (this.defaultGrammarDirectoryJTB);
      }
    }
    return directories.toArray (new File [directories.size ()]);
  }
1136440
public static StackTraceElement callerFrame() {
        final Thread me = currentThread();
        StackTraceElement[] se = me.getStackTrace();
        for (int i = 0; i < se.length; i++) {
            String sClass = se[i].getClassName();
            if (!sClass.equals(CLASS)) continue;
            String method = se[i].getMethodName();
            if (!"callerFrame".equals(method)) continue;
            if (i + 2 < se.length) return se[i + 2];
        }
        throw new IllegalStateException("bad stack");
    }
408501
public final V invoke() {
        int s;
        if ((s = doInvoke() & DONE_MASK) != NORMAL)
            reportException(s);
        return getRawResult();
    }
1249867
public boolean process()
	{
		boolean continueIterate = true;
		boolean found = false;
		String attempt = getCurrentAttempt();
		while (continueIterate)
		{
			if (attempt.equals(toCheckAgainst))
			{
				found = true;
				break;
			}
			attempt = getCurrentAttempt();
			continueIterate = increment();
		}
		return found;
	}
369399
@Override
  public Boolean call() throws Exception {

    ProcessRecord updatedRecord = null;
    Connection hbaseConnection = null;
    try {
      hbaseConnection = ConnectionFactory.createConnection(hbaseConf);
      // Connect only when needed.
      ProcessRecordService processRecordService =
          new ProcessRecordService(hbaseConf, hbaseConnection);

      updatedRecord =
          processRecordService.setProcessState(processRecord, newState);
    } finally {
      if (hbaseConnection != null) {
        hbaseConnection.close();
      }
    }

    if ((updatedRecord != null)
        && (updatedRecord.getProcessState() == newState)) {
      return true;
    }
    return false;
  }
910907
public function callMe()
    {
        $output = $this->dispatchStartEvent();

        // Check nesting level, memory and runtime.
        $this->pool->emergencyHandler->upOneNestingLevel();
        if ($this->pool->emergencyHandler->checkNesting() === true ||
            $this->pool->emergencyHandler->checkEmergencyBreak() === true
        ) {
            // We will not be doing this one, but we need to get down with our
            // nesting level again.
            $this->pool->emergencyHandler->downOneNestingLevel();
            return $output;
        }

        // Do the actual analysis
        return $output . $this->getTaversableData();
    }
792346
private int doInvoke() {
        int s; Thread t; ForkJoinWorkerThread wt;
        if ((s = doExec()) >= 0) {
            if ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread)
                s = (wt = (ForkJoinWorkerThread)t).pool.awaitJoin(wt.workQueue,
                                                                  this);
            else
                s = externalAwaitDone();
        }
        return s;
    }
225879
public List<File> processFiles() throws Exception {
        List<File> changed = new ArrayList<>();
        for (File child : files) {
            File file = processFile(child);
            if (file != null) {
                changed.add(file);
            }
        }
        return changed;
    }