コード例 #1
0
    @Override
    public void visitBitwiseNegationExpression(BitwiseNegationExpression expression) {
      // LOG.debug "Transforming expression '${expression}':"

      if (expression.getLineNumber() >= 0 && expression.getLineNumber() < lineNumbers.length) {
        // LOG.debug "   start from ${expression.lineNumber} to ${lineNumbers[expression.lineNumber
        // - 1]}"
        expression.setLineNumber(lineNumbers[expression.getLineNumber() - 1]);
      }

      if (expression.getLastLineNumber() > 0
          && expression.getLastLineNumber() < lineNumbers.length) {
        // LOG.debug "   end from ${expression.lastLineNumber} to
        // ${lineNumbers[expression.lastLineNumber - 1]}"
        expression.setLastLineNumber(lineNumbers[expression.getLastLineNumber() - 1]);
      }
      super.visitBitwiseNegationExpression(expression);
    }
コード例 #2
0
 @Override
 public void visitBitwiseNegationExpression(final BitwiseNegationExpression expression) {
   pushContext(expression);
   super.visitBitwiseNegationExpression(expression);
   popContext();
 }
コード例 #3
0
 @Override
 public final void visitBitwiseNegationExpression(BitwiseNegationExpression expression) {
   super.visitBitwiseNegationExpression(expression);
 }