Class ContextStack

java.lang.Object
org.glassfish.rmic.iiop.ContextStack

public class ContextStack extends Object
ContextStack provides a mechanism to record parsing state.
Author:
Bryan Atsatt
  • Field Details

  • Constructor Details

  • Method Details

    • anyErrors

      public boolean anyErrors()
      Return true if env.nerrors > 0.
    • setTrace

      public void setTrace(boolean trace)
      Enable/disable tracing.
    • isTraceOn

      public boolean isTraceOn()
      Check trace flag.
    • getEnv

      public BatchEnvironment getEnv()
      Get the environment.
    • setNewContextCode

      public void setNewContextCode(int code)
      Set the new context.
    • getCurrentContextCode

      public int getCurrentContextCode()
      Get the current context code.
    • dumpCallStack

      public static final void dumpCallStack()
    • push

      public org.glassfish.rmic.iiop.TypeContext push(ContextElement element)
      Push a new element on the stack.
      Returns:
      the new element.
    • pop

      public org.glassfish.rmic.iiop.TypeContext pop(boolean wasValid)
      Pop an element from the stack.
      Returns:
      the new current element or null if top.
    • size

      public int size()
      Get the current size.
    • getContext

      public org.glassfish.rmic.iiop.TypeContext getContext(int index)
      Get a specific context.
    • getContext

      public org.glassfish.rmic.iiop.TypeContext getContext()
      Get the current top context.
    • isParentAValue

      public boolean isParentAValue()
      Is parent context a value type?
    • getParentContext

      public org.glassfish.rmic.iiop.TypeContext getParentContext()
      Get parent context. Null if none.
    • getContextCodeString

      public String getContextCodeString()
      Get a string for the context name...
    • getContextCodeString

      public static String getContextCodeString(int contextCode)
      Get a string for the given context code...
    • clear

      public void clear()