code: @Deprecated
      @Override
      public boolean getFlag(int flagType) {
          boolean val = false;
          boolean leftFlag = left.getFlag(flagType);
          if (right != null) {
              if ("and".equals(operator) && leftFlag) {
                  boolean rightFlag = right.getFlag(flagType);
                  val = leftFlag && rightFlag;
              } else if ("or".equals(operator)) {
                  boolean rightFlag = right.getFlag(flagType);
                  val = leftFlag || rightFlag;
              }
          } else {
              if ("not".equals(operator)) {
                  val = (!leftFlag);
              } else {
                  val = leftFlag;
              }
          }
          return val;
      }
docs: /*
  (non-Javadoc)
  @see org.openscience.cdk.ChemObject#getFlag(int)