< prev index next >

src/jdk.rmic/share/classes/sun/rmi/rmic/iiop/ContextStack.java

Print this page




  78 
  79     private int currentIndex = -1;
  80     private int maxIndex = 100;
  81     private TypeContext[] stack = new TypeContext[maxIndex];
  82     private int newCode = TOP;
  83     private BatchEnvironment env = null;
  84     private boolean trace = false;
  85     private TypeContext tempContext = new TypeContext();
  86 
  87     private static final String TRACE_INDENT = "   ";
  88 
  89     /**
  90      * Constructor.
  91      */
  92     public ContextStack (BatchEnvironment env) {
  93         this.env = env;
  94         env.contextStack = this;
  95     }
  96 
  97     /**
  98      * Return true if env.nerrors > 0.
  99      */
 100     public boolean anyErrors () {
 101         return env.nerrors > 0;
 102     }
 103 
 104     /**
 105      * Enable/disable tracing.
 106      */
 107     public void setTrace(boolean trace) {
 108         this.trace = trace;
 109     }
 110 
 111     /**
 112      * Check trace flag.
 113      */
 114     public boolean isTraceOn() {
 115         return trace;
 116     }
 117 
 118     /**




  78 
  79     private int currentIndex = -1;
  80     private int maxIndex = 100;
  81     private TypeContext[] stack = new TypeContext[maxIndex];
  82     private int newCode = TOP;
  83     private BatchEnvironment env = null;
  84     private boolean trace = false;
  85     private TypeContext tempContext = new TypeContext();
  86 
  87     private static final String TRACE_INDENT = "   ";
  88 
  89     /**
  90      * Constructor.
  91      */
  92     public ContextStack (BatchEnvironment env) {
  93         this.env = env;
  94         env.contextStack = this;
  95     }
  96 
  97     /**
  98      * Return true if {@code env.nerrors > 0}.
  99      */
 100     public boolean anyErrors () {
 101         return env.nerrors > 0;
 102     }
 103 
 104     /**
 105      * Enable/disable tracing.
 106      */
 107     public void setTrace(boolean trace) {
 108         this.trace = trace;
 109     }
 110 
 111     /**
 112      * Check trace flag.
 113      */
 114     public boolean isTraceOn() {
 115         return trace;
 116     }
 117 
 118     /**


< prev index next >