Package java.util

Examples of java.util.Stack


     * @see org.datanucleus.query.compiler.Parser#parseTupple(java.lang.String)
     */
    public Node[] parseTupple(String expression)
    {
        p = new Lexer(expression, paramPrefixes, true);
        stack = new Stack();
        List nodes = new ArrayList();
        do
        {
            processExpression();
            Node expr = stack.pop();
View Full Code Here


  private SimpleSet thrownExceptions;
  private Stack exceptionsStack;
 
  public ReferenceBinding[] find(TryStatement tryStatement, BlockScope scope) {
    this.thrownExceptions = new SimpleSet();
    this.exceptionsStack = new Stack();
    tryStatement.traverse(this, scope);
    removeCaughtExceptions(tryStatement);
   
    ReferenceBinding[] result = new ReferenceBinding[this.thrownExceptions.elementSize];
    this.thrownExceptions.asArray(result);
View Full Code Here

    this.lineInfo= lineInfo;
    this.nodeInfos= nodeInfos;
    this.tokenScanner= null;
    this.currentEdit= rootEdit;
    this.sourceCopyInfoToEdit= new IdentityHashMap();
    this.sourceCopyEndNodes= new Stack();
   
    this.formatter= new ASTRewriteFormatter(nodeInfos, eventStore, options, lineDelim);
   
    this.extendedSourceRangeComputer = extendedSourceRangeComputer;
    this.lineCommentEndOffsets= new LineCommentEndOffsets(comments);
View Full Code Here

      AjBuildConfig buildConfig) {
    currCompilationResult = cuDeclaration.compilationResult();
    filename = new String(currCompilationResult.fileName);
    lineseps = currCompilationResult.lineSeparatorPositions;
    LangUtil.throwIaxIfNull(currCompilationResult, "result");
    stack = new Stack();
    packageDecl = null;
    this.buildConfig = buildConfig;
    internalBuild(cuDeclaration, structureModel);
    this.buildConfig = null; // clear reference since this structure is
    // anchored in static
View Full Code Here

  }

  private static class ThreadLocalStack extends ThreadLocal {

    public boolean empty () {
      Stack stack = (Stack)get();
      return stack.empty();
    }
View Full Code Here

      return stack.empty();
    }

    public Object peek () {
      Object obj = null;
      Stack stack = (Stack)get();
      if (!stack.empty()) obj = stack.peek();
      return obj;
    }
View Full Code Here

      if (!stack.empty()) obj = stack.peek();
      return obj;
    }
   
    public void push (Object obj) {
      Stack stack = (Stack)get();
      if (!stack.empty() && obj == stack.peek()) throw new RuntimeException(obj.toString());
      stack.push(obj);
    }
View Full Code Here

      if (!stack.empty() && obj == stack.peek()) throw new RuntimeException(obj.toString());
      stack.push(obj);
    }
   
    public Object pop () {
      Stack stack = (Stack)get();
      return stack.pop();
    }
View Full Code Here

      Stack stack = (Stack)get();
      return stack.pop();
    }
   
    protected Object initialValue() {
      return new Stack();
    }
View Full Code Here

*    type or compilation unit
*/
protected void initializeBuild(char[] sourceCode, boolean buildingCompilationUnit, boolean buildingType) {
  fBuildingCU = buildingCompilationUnit;
  fBuildingType = buildingType;
  fStack = new Stack();
  fDocument = sourceCode;
  fFieldCount = 0;
  fAbort = false;
}
View Full Code Here

TOP

Related Classes of java.util.Stack

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.