/** * clear the contextStack2 after XPath evaluation * * */ final protected void clearStack2(){ contextStack2.clear(); } /**
/** * Load the context info from contextStack2. * This method is dedicated for XPath evaluation. * @return status of pop2 */ final protected boolean pop2(){ boolean b = contextStack2.load(stackTemp); if (b == false) return false; for (int i = 0; i < nestingLevel; i++) { context[i] = stackTemp[i]; } l1index = stackTemp[nestingLevel]; l2index = stackTemp[nestingLevel + 1]; l3index = stackTemp[nestingLevel + 2]; l2lower = stackTemp[nestingLevel + 3]; l2upper = stackTemp[nestingLevel + 4]; l3lower = stackTemp[nestingLevel + 5]; l3upper = stackTemp[nestingLevel + 6]; atTerminal = (stackTemp[nestingLevel + 7] == 1); LN = stackTemp[nestingLevel+8]; return true; } /**
/** * Store the context info into the contextStack2. * This method is reserved for XPath Evaluation * */ final protected void push2() { for (int i = 0; i < nestingLevel; i++) { stackTemp[i] = context[i]; } stackTemp[nestingLevel] = l1index; stackTemp[nestingLevel + 1] = l2index; stackTemp[nestingLevel + 2] = l3index; stackTemp[nestingLevel + 3] = l2lower; stackTemp[nestingLevel + 4] = l2upper; stackTemp[nestingLevel + 5] = l3lower; stackTemp[nestingLevel + 6] = l3upper; if (atTerminal) stackTemp[nestingLevel + 7] =1; else stackTemp[nestingLevel + 7] =0; stackTemp[nestingLevel+8] = LN; contextStack2.store(stackTemp); }
ContextBuffer cb = new ContextBuffer(18); for (int i = 0; i < 57; i++) { for (int j = 0; j < 17; j++) { cb.store(ia); cb.load(ia); System.out.println(""+ia[0]); if (ia[17]!=-1) cb.clear(); cb.store(ia); cb.load(ia); System.out.println(""+ia[0]); for (int j = 17; j >= 0; j--) { cb.clear(); for (int i = 0; i < 257; i++) { for (int j = 0; j < 18; j++) { ia[j] = i; cb.store(ia); cb.load(ia); System.out.println(""+ia[0]); for (int j = 17; j >= 0; j--) {
contextStack = new ContextBuffer(10, nestingLevel + 9); contextStack2 = new ContextBuffer(10, nestingLevel+9); stackTemp = new int[nestingLevel + 9];
ContextBuffer cb = new ContextBuffer(18); for (int i = 0; i < 57; i++) { for (int j = 0; j < 17; j++) { cb.store(ia); cb.load(ia); System.out.println(""+ia[0]); if (ia[17]!=-1) cb.clear(); cb.store(ia); cb.load(ia); System.out.println(""+ia[0]); for (int j = 17; j >= 0; j--) { cb.clear(); for (int i = 0; i < 257; i++) { for (int j = 0; j < 18; j++) { ia[j] = i; cb.store(ia); cb.load(ia); System.out.println(""+ia[0]); for (int j = 17; j >= 0; j--) {
contextStack = new ContextBuffer(10, nestingLevel + 9); contextStack2 = new ContextBuffer(10, nestingLevel+9); stackTemp = new int[nestingLevel + 9];
ContextBuffer cb = new ContextBuffer(18); for (int i = 0; i < 57; i++) { for (int j = 0; j < 17; j++) { cb.store(ia); cb.load(ia); System.out.println(""+ia[0]); if (ia[17]!=-1) cb.clear(); cb.store(ia); cb.load(ia); System.out.println(""+ia[0]); for (int j = 17; j >= 0; j--) { cb.clear(); for (int i = 0; i < 257; i++) { for (int j = 0; j < 18; j++) { ia[j] = i; cb.store(ia); cb.load(ia); System.out.println(""+ia[0]); for (int j = 17; j >= 0; j--) {
/** * Store the context info into the ContextBuffer. * Info saved including LC and current state of the context * Creation date: (11/16/03 7:00:27 PM) */ final public void push() { for (int i = 0; i < nestingLevel; i++) { stackTemp[i] = context[i]; } stackTemp[nestingLevel] = l1index; stackTemp[nestingLevel + 1] = l2index; stackTemp[nestingLevel + 2] = l3index; stackTemp[nestingLevel + 3] = l2lower; stackTemp[nestingLevel + 4] = l2upper; stackTemp[nestingLevel + 5] = l3lower; stackTemp[nestingLevel + 6] = l3upper; if (atTerminal) stackTemp[nestingLevel + 7] =1; else stackTemp[nestingLevel + 7] =0; stackTemp[nestingLevel+8] = LN; contextStack.store(stackTemp); } /**
/** * Load the context info from contextStack2. * This method is dedicated for XPath evaluation. * @return status of pop2 */ final protected boolean pop2(){ boolean b = contextStack2.load(stackTemp); if (b == false) return false; for (int i = 0; i < nestingLevel; i++) { context[i] = stackTemp[i]; } l1index = stackTemp[nestingLevel]; l2index = stackTemp[nestingLevel + 1]; l3index = stackTemp[nestingLevel + 2]; l2lower = stackTemp[nestingLevel + 3]; l2upper = stackTemp[nestingLevel + 4]; l3lower = stackTemp[nestingLevel + 5]; l3upper = stackTemp[nestingLevel + 6]; atTerminal = (stackTemp[nestingLevel + 7] == 1); LN = stackTemp[nestingLevel+8]; return true; } /**
/** * clear the contextStack2 after XPath evaluation * * */ final protected void clearStack2(){ contextStack2.clear(); } /**
contextStack = new ContextBuffer(10, nestingLevel + 9); contextStack2 = new ContextBuffer(10, nestingLevel+9); stackTemp = new int[nestingLevel + 9];
/** * Store the context info into the contextStack2. * This method is reserved for XPath Evaluation * */ final protected void push2() { for (int i = 0; i < nestingLevel; i++) { stackTemp[i] = context[i]; } stackTemp[nestingLevel] = l1index; stackTemp[nestingLevel + 1] = l2index; stackTemp[nestingLevel + 2] = l3index; stackTemp[nestingLevel + 3] = l2lower; stackTemp[nestingLevel + 4] = l2upper; stackTemp[nestingLevel + 5] = l3lower; stackTemp[nestingLevel + 6] = l3upper; if (atTerminal) stackTemp[nestingLevel + 7] =1; else stackTemp[nestingLevel + 7] =0; stackTemp[nestingLevel+8] = LN; contextStack2.store(stackTemp); }
/** * Load the context info from ContextBuffer. * Info saved including LC and current state of the context * @return boolean * */ final public boolean pop() { boolean b = contextStack.load(stackTemp); if (b == false) return false; for (int i = 0; i < nestingLevel; i++) { context[i] = stackTemp[i]; } l1index = stackTemp[nestingLevel]; l2index = stackTemp[nestingLevel + 1]; l3index = stackTemp[nestingLevel + 2]; l2lower = stackTemp[nestingLevel + 3]; l2upper = stackTemp[nestingLevel + 4]; l3lower = stackTemp[nestingLevel + 5]; l3upper = stackTemp[nestingLevel + 6]; atTerminal = (stackTemp[nestingLevel + 7] == 1); LN = stackTemp[nestingLevel+8]; return true; } /**
/** * clear the contextStack2 after XPath evaluation * * */ final protected void clearStack2(){ contextStack2.clear(); } /**
/** * Store the context info into the contextStack2. * This method is reserved for XPath Evaluation * */ final protected void push2() { for (int i = 0; i < nestingLevel; i++) { stackTemp[i] = context[i]; } stackTemp[nestingLevel] = l1index; stackTemp[nestingLevel + 1] = l2index; stackTemp[nestingLevel + 2] = l3index; stackTemp[nestingLevel + 3] = l2lower; stackTemp[nestingLevel + 4] = l2upper; stackTemp[nestingLevel + 5] = l3lower; stackTemp[nestingLevel + 6] = l3upper; if (atTerminal) stackTemp[nestingLevel + 7] =1; else stackTemp[nestingLevel + 7] =0; stackTemp[nestingLevel+8] = LN; contextStack2.store(stackTemp); }
/** * Load the context info from contextStack2. * This method is dedicated for XPath evaluation. * @return status of pop2 */ final protected boolean pop2(){ boolean b = contextStack2.load(stackTemp); if (b == false) return false; for (int i = 0; i < nestingLevel; i++) { context[i] = stackTemp[i]; } l1index = stackTemp[nestingLevel]; l2index = stackTemp[nestingLevel + 1]; l3index = stackTemp[nestingLevel + 2]; l2lower = stackTemp[nestingLevel + 3]; l2upper = stackTemp[nestingLevel + 4]; l3lower = stackTemp[nestingLevel + 5]; l3upper = stackTemp[nestingLevel + 6]; atTerminal = (stackTemp[nestingLevel + 7] == 1); LN = stackTemp[nestingLevel+8]; return true; } /**
/** * Store the context info into the ContextBuffer. * Info saved including LC and current state of the context * Creation date: (11/16/03 7:00:27 PM) */ final public void push() { for (int i = 0; i < nestingLevel; i++) { stackTemp[i] = context[i]; } stackTemp[nestingLevel] = l1index; stackTemp[nestingLevel + 1] = l2index; stackTemp[nestingLevel + 2] = l3index; stackTemp[nestingLevel + 3] = l2lower; stackTemp[nestingLevel + 4] = l2upper; stackTemp[nestingLevel + 5] = l3lower; stackTemp[nestingLevel + 6] = l3upper; if (atTerminal) stackTemp[nestingLevel + 7] =1; else stackTemp[nestingLevel + 7] =0; stackTemp[nestingLevel+8] = LN; contextStack.store(stackTemp); } /**
/** * Load the context info from ContextBuffer. * Info saved including LC and current state of the context * @return boolean * */ final public boolean pop() { boolean b = contextStack.load(stackTemp); if (b == false) return false; for (int i = 0; i < nestingLevel; i++) { context[i] = stackTemp[i]; } l1index = stackTemp[nestingLevel]; l2index = stackTemp[nestingLevel + 1]; l3index = stackTemp[nestingLevel + 2]; l2lower = stackTemp[nestingLevel + 3]; l2upper = stackTemp[nestingLevel + 4]; l3lower = stackTemp[nestingLevel + 5]; l3upper = stackTemp[nestingLevel + 6]; atTerminal = (stackTemp[nestingLevel + 7] == 1); LN = stackTemp[nestingLevel+8]; return true; } /**
/** * Store the context info into the ContextBuffer. * Info saved including LC and current state of the context * Creation date: (11/16/03 7:00:27 PM) */ final public void push() { for (int i = 0; i < nestingLevel; i++) { stackTemp[i] = context[i]; } stackTemp[nestingLevel] = l1index; stackTemp[nestingLevel + 1] = l2index; stackTemp[nestingLevel + 2] = l3index; stackTemp[nestingLevel + 3] = l2lower; stackTemp[nestingLevel + 4] = l2upper; stackTemp[nestingLevel + 5] = l3lower; stackTemp[nestingLevel + 6] = l3upper; if (atTerminal) stackTemp[nestingLevel + 7] =1; else stackTemp[nestingLevel + 7] =0; stackTemp[nestingLevel+8] = LN; contextStack.store(stackTemp); } /**