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/CombinedAtomicMassNumberRuleTest.java
test_class.identifier: CombinedAtomicMassNumberRuleTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testCompare() {
          ILigand ligand1 = new Ligand(molecule, new VisitedAtoms(), molecule.getAtom(1), molecule.getAtom(0));
          ILigand ligand2 = new Ligand(molecule, new VisitedAtoms(), molecule.getAtom(1), molecule.getAtom(2));
          ISequenceSubRule<ILigand> rule = new CombinedAtomicMassNumberRule();
          Assert.assertEquals(-1, rule.compare(ligand1, ligand2));
          Assert.assertEquals(1, rule.compare(ligand2, ligand1));
      }
test_case.class_method_signature: CombinedAtomicMassNumberRuleTest.testCompare()
test_case.full_signature: @Test public void testCompare()
test_case.identifier: testCompare
test_case.invocations: getAtom getAtom getAtom getAtom assertEquals compare assertEquals compare
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCompare()
focal_class.declarator: massNumberRule   = new MassNumberRule()
focal_class.original_string: MassNumberRule   massNumberRule   = new MassNumberRule();
focal_class.type: MassNumberRule
focal_class.var_name: massNumberRule
focal_class.declarator: atomicNumberRule = new AtomicNumberRule()
focal_class.original_string: AtomicNumberRule atomicNumberRule = new AtomicNumberRule();
focal_class.type: AtomicNumberRule
focal_class.var_name: atomicNumberRule
focal_class.file: descriptor/cip/src/main/java/org/openscience/cdk/geometry/cip/rules/CombinedAtomicMassNumberRule.java
focal_class.identifier: CombinedAtomicMassNumberRule
focal_class.interfaces: implements ISequenceSubRule<ILigand>
focal_class.class_method_signature: CombinedAtomicMassNumberRule.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_method.body: @Override
      public int compare(ILigand ligand1, ILigand ligand2) {
          int atomicNumberComp = atomicNumberRule.compare(ligand1, ligand2);
          if (atomicNumberComp != 0) return atomicNumberComp;
  
          int massNumberComp = massNumberRule.compare(ligand1, ligand2);
          if (massNumberComp != 0) return massNumberComp;
  
          if ("H".equals(ligand1.getLigandAtom().getSymbol())) {
              // both atoms are hydrogens
              return 0;
          }
  
          return massNumberComp;
      }
focal_method.class_method_signature: CombinedAtomicMassNumberRule.compare(ILigand ligand1, ILigand ligand2)
focal_method.full_signature: @Override public int compare(ILigand ligand1, ILigand ligand2)
focal_method.identifier: compare
focal_method.invocations: compare compare equals getSymbol getLigandAtom
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)