public class DocumentElementParser extends UnitParser {
IDocumentElementRequestor requestor;
- private int localIntPtr;
+ //private int localIntPtr;
- private int lastFieldEndPosition;
+ //private int lastFieldEndPosition;
- private int lastFieldBodyEndPosition;
+ //private int lastFieldBodyEndPosition;
- private int typeStartPosition;
+// private int typeStartPosition;
- private long selectorSourcePositions;
+ //private long selectorSourcePositions;
- private int typeDims;
+ //private int typeDims;
- private int extendsDim;
+ //private int extendsDim;
- private int declarationSourceStart;
+ //private int declarationSourceStart;
/* int[] stack for storing javadoc positions */
int[][] intArrayStack;
return problemReporter;
}
- protected void pushOnIntArrayStack(int[] positions) {
-
- try {
- intArrayStack[++intArrayPtr] = positions;
- } catch (IndexOutOfBoundsException e) {
- // intPtr is correct
- int oldStackLength = intArrayStack.length;
- int oldStack[][] = intArrayStack;
- intArrayStack = new int[oldStackLength + StackIncrement][];
- System.arraycopy(oldStack, 0, intArrayStack, 0, oldStackLength);
- intArrayStack[intArrayPtr] = positions;
- }
- }
+// protected void pushOnIntArrayStack(int[] positions) {
+//
+// try {
+// intArrayStack[++intArrayPtr] = positions;
+// } catch (IndexOutOfBoundsException e) {
+// // intPtr is correct
+// int oldStackLength = intArrayStack.length;
+// int oldStack[][] = intArrayStack;
+// intArrayStack = new int[oldStackLength + StackIncrement][];
+// System.arraycopy(oldStack, 0, intArrayStack, 0, oldStackLength);
+// intArrayStack[intArrayPtr] = positions;
+// }
+// }
// protected void resetModifiers() {
// super.resetModifiers();
* Syntax error was detected. Will attempt to perform some recovery action
* in order to resume to the regular parse loop.
*/
- protected boolean resumeOnSyntaxError() {
- return false;
- }
+// protected boolean resumeOnSyntaxError() {
+// return false;
+// }
/*
* Answer a char array representation of the type name formatted like: -
* type name + dimensions Example: "A[][]".toCharArray()