test_class.file: storage/io/src/test/java/org/openscience/cdk/io/cml/CMLModuleStackTest.java
test_class.identifier: CMLModuleStackTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testCurrent() {
          CMLModuleStack stack = new CMLModuleStack();
          ICMLModule first = new CMLCoreModule((IChemFile) null);
          stack.push(first);
          Assert.assertEquals(first, stack.current());
      }
test_case.class_method_signature: CMLModuleStackTest.testCurrent()
test_case.full_signature: @Test public void testCurrent()
test_case.identifier: testCurrent
test_case.invocations: push assertEquals current
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCurrent()
focal_class.declarator: stack = new ICMLModule[64]
focal_class.original_string: ICMLModule[] stack = new ICMLModule[64];
focal_class.type: ICMLModule[]
focal_class.var_name: stack
focal_class.declarator: sp    = 0
focal_class.original_string: int          sp    = 0;
focal_class.type: int
focal_class.var_name: sp
focal_class.file: storage/io/src/main/java/org/openscience/cdk/io/cml/CMLModuleStack.java
focal_class.identifier: CMLModuleStack
focal_class.class_method_signature: CMLModuleStack.push(ICMLModule item)
focal_class.full_signature: public void push(ICMLModule item)
focal_class.identifier: push
focal_class.modifiers: public
focal_class.parameters: (ICMLModule item)
focal_class.return: void
focal_class.signature: void push(ICMLModule item)
focal_class.class_method_signature: CMLModuleStack.length()
focal_class.full_signature: public int length()
focal_class.identifier: length
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int length()
focal_class.class_method_signature: CMLModuleStack.pop()
focal_class.full_signature: public ICMLModule pop()
focal_class.identifier: pop
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ICMLModule
focal_class.signature: ICMLModule pop()
focal_class.class_method_signature: CMLModuleStack.current()
focal_class.full_signature: public ICMLModule current()
focal_class.identifier: current
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ICMLModule
focal_class.signature: ICMLModule current()
focal_class.class_method_signature: CMLModuleStack.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: CMLModuleStack.endsWith(ICMLModule lastElement)
focal_class.full_signature: public boolean endsWith(ICMLModule lastElement)
focal_class.identifier: endsWith
focal_class.modifiers: public
focal_class.parameters: (ICMLModule lastElement)
focal_class.return: boolean
focal_class.signature: boolean endsWith(ICMLModule lastElement)
focal_class.class_method_signature: CMLModuleStack.endsWith(ICMLModule oneButLast, ICMLModule lastElement)
focal_class.full_signature: public boolean endsWith(ICMLModule oneButLast, ICMLModule lastElement)
focal_class.identifier: endsWith
focal_class.modifiers: public
focal_class.parameters: (ICMLModule oneButLast, ICMLModule lastElement)
focal_class.return: boolean
focal_class.signature: boolean endsWith(ICMLModule oneButLast, ICMLModule lastElement)
focal_class.class_method_signature: CMLModuleStack.endsWith(ICMLModule twoButLast, ICMLModule oneButLast, ICMLModule lastElement)
focal_class.full_signature: public boolean endsWith(ICMLModule twoButLast, ICMLModule oneButLast, ICMLModule lastElement)
focal_class.identifier: endsWith
focal_class.modifiers: public
focal_class.parameters: (ICMLModule twoButLast, ICMLModule oneButLast, ICMLModule lastElement)
focal_class.return: boolean
focal_class.signature: boolean endsWith(ICMLModule twoButLast, ICMLModule oneButLast, ICMLModule lastElement)
focal_method.body: public ICMLModule current() {
          if (sp > 0) {
              return stack[sp - 1];
          } else {
              return null;
          }
      }
focal_method.class_method_signature: CMLModuleStack.current()
focal_method.full_signature: public ICMLModule current()
focal_method.identifier: current
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: ICMLModule
focal_method.signature: ICMLModule current()