1 28 29 package com.caucho.relaxng; 30 31 import com.caucho.relaxng.program.Item; 32 import com.caucho.util.L10N; 33 34 import java.util.ArrayList ; 35 36 39 public class ParseState { 40 protected static final L10N L = new L10N(ParseState.class); 41 42 private ArrayList <Item> _stack = new ArrayList <Item>(); 43 private ArrayList <int[]> _interleaveStack = new ArrayList <int[]>(); 44 45 public void push(Item next) 46 { 47 _stack.add(next); 48 } 49 50 public Item pop() 51 { 52 if (_stack.size() == 0) 53 return null; 54 else 55 return _stack.remove(_stack.size() - 1); 56 } 57 } 58 59 | Popular Tags |