test_class.declarator: smiles = new SmilesParser(SilentChemObjectBuilder.getInstance())
test_class.modifier: static
test_class.original_string: static SmilesParser   smiles = new SmilesParser(SilentChemObjectBuilder.getInstance());
test_class.type: SmilesParser
test_class.var_name: smiles
test_class.declarator: molecule
test_class.modifier: static
test_class.original_string: static IAtomContainer molecule;
test_class.type: IAtomContainer
test_class.var_name: molecule
test_class.file: descriptor/cip/src/test/java/org/openscience/cdk/geometry/cip/rules/MassNumberRuleTest.java
test_class.identifier: MassNumberRuleTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testImplicitHydrogen_Same() {
          ILigand ligand1 = new ImplicitHydrogenLigand(molecule, new VisitedAtoms(), molecule.getAtom(1));
          ILigand ligand2 = new Ligand(molecule, new VisitedAtoms(), molecule.getAtom(1), molecule.getAtom(4));
          ISequenceSubRule<ILigand> rule = new MassNumberRule();
          Assert.assertEquals(0, rule.compare(ligand1, ligand2));
          Assert.assertEquals(0, rule.compare(ligand2, ligand1));
      }
test_case.class_method_signature: MassNumberRuleTest.testImplicitHydrogen_Same()
test_case.full_signature: @Test public void testImplicitHydrogen_Same()
test_case.identifier: testImplicitHydrogen_Same
test_case.invocations: getAtom getAtom getAtom assertEquals compare assertEquals compare
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testImplicitHydrogen_Same()
focal_class.declarator: logger = LoggingToolFactory.createLoggingTool(MassNumberRule.class)
focal_class.original_string: ILoggingTool   logger = LoggingToolFactory.createLoggingTool(MassNumberRule.class);
focal_class.type: ILoggingTool
focal_class.var_name: logger
focal_class.declarator: factory
focal_class.original_string: IsotopeFactory factory;
focal_class.type: IsotopeFactory
focal_class.var_name: factory
focal_class.file: descriptor/cip/src/main/java/org/openscience/cdk/geometry/cip/rules/MassNumberRule.java
focal_class.identifier: MassNumberRule
focal_class.interfaces: implements ISequenceSubRule<ILigand>
focal_class.class_method_signature: MassNumberRule.compare(ILigand ligand1, ILigand ligand2)
focal_class.full_signature: @Override public int compare(ILigand ligand1, ILigand ligand2)
focal_class.identifier: compare
focal_class.modifiers: @Override public
focal_class.parameters: (ILigand ligand1, ILigand ligand2)
focal_class.return: int
focal_class.signature: int compare(ILigand ligand1, ILigand ligand2)
focal_class.class_method_signature: MassNumberRule.ensureFactory()
focal_class.full_signature: private void ensureFactory()
focal_class.identifier: ensureFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void ensureFactory()
focal_class.class_method_signature: MassNumberRule.getMassNumber(ILigand ligand)
focal_class.full_signature: private Integer getMassNumber(ILigand ligand)
focal_class.identifier: getMassNumber
focal_class.modifiers: private
focal_class.parameters: (ILigand ligand)
focal_class.return: Integer
focal_class.signature: Integer getMassNumber(ILigand ligand)
focal_method.body: @Override
      public int compare(ILigand ligand1, ILigand ligand2) {
          ensureFactory();
          return getMassNumber(ligand1).compareTo(getMassNumber(ligand2));
      }
focal_method.class_method_signature: MassNumberRule.compare(ILigand ligand1, ILigand ligand2)
focal_method.full_signature: @Override public int compare(ILigand ligand1, ILigand ligand2)
focal_method.identifier: compare
focal_method.invocations: ensureFactory compareTo getMassNumber getMassNumber
focal_method.modifiers: @Override public
focal_method.parameters: (ILigand ligand1, ILigand ligand2)
focal_method.return: int
focal_method.signature: int compare(ILigand ligand1, ILigand ligand2)