test_class.declarator: builder
test_class.modifier: private static
test_class.original_string: private static IChemObjectBuilder builder;
test_class.type: IChemObjectBuilder
test_class.var_name: builder
test_class.file: tool/formula/src/test/java/org/openscience/cdk/formula/rules/ChargeRuleTest.java
test_class.identifier: ChargeRuleTest
test_class.superclass: extends FormulaRuleTest
test_case.body: @Test
      public void testDefault() throws ClassNotFoundException, CDKException, Exception {
  
          IRule rule = new ChargeRule();
          Object[] objects = rule.getParameters();
          Assert.assertEquals(1, objects.length);
  
          double charge = (Double) objects[0];
          Assert.assertEquals(0.0, charge, 0.00001);
  
      }
test_case.class_method_signature: ChargeRuleTest.testDefault()
test_case.full_signature: @Test public void testDefault()
test_case.identifier: testDefault
test_case.invocations: getParameters assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDefault()
focal_class.declarator: logger = LoggingToolFactory.createLoggingTool(ChargeRule.class)
focal_class.modifier: private static
focal_class.original_string: private static ILoggingTool logger = LoggingToolFactory.createLoggingTool(ChargeRule.class);
focal_class.type: ILoggingTool
focal_class.var_name: logger
focal_class.declarator: charge = 0.0
focal_class.modifier: private
focal_class.original_string: private double              charge = 0.0;
focal_class.type: double
focal_class.var_name: charge
focal_class.file: tool/formula/src/main/java/org/openscience/cdk/formula/rules/ChargeRule.java
focal_class.identifier: ChargeRule
focal_class.interfaces: implements IRule
focal_class.class_method_signature: ChargeRule.ChargeRule()
focal_class.full_signature: public  ChargeRule()
focal_class.identifier: ChargeRule
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ChargeRule()
focal_class.class_method_signature: ChargeRule.setParameters(Object[] params)
focal_class.full_signature: @Override public void setParameters(Object[] params)
focal_class.identifier: setParameters
focal_class.modifiers: @Override public
focal_class.parameters: (Object[] params)
focal_class.return: void
focal_class.signature: void setParameters(Object[] params)
focal_class.class_method_signature: ChargeRule.getParameters()
focal_class.full_signature: @Override public Object[] getParameters()
focal_class.identifier: getParameters
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Object[]
focal_class.signature: Object[] getParameters()
focal_class.class_method_signature: ChargeRule.validate(IMolecularFormula formula)
focal_class.full_signature: @Override public double validate(IMolecularFormula formula)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (IMolecularFormula formula)
focal_class.return: double
focal_class.signature: double validate(IMolecularFormula formula)
focal_method.body: @Override
      public Object[] getParameters() {
          // return the parameters as used for the rule validation
          Object[] params = new Object[1];
          params[0] = charge;
          return params;
      }
focal_method.class_method_signature: ChargeRule.getParameters()
focal_method.full_signature: @Override public Object[] getParameters()
focal_method.identifier: getParameters
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Object[]
focal_method.signature: Object[] getParameters()