/*
 * Copyright 2011, Mysema Ltd
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.querydsl.core.types;

import javax.annotation.Nullable;

/**
 * Visitor defines a Visitor signature for {@link Expression} instances.
 *
 * @author tiwe
 */
public interface Visitor<R,C> {

    /**
     * @param expr
     */
    @Nullable
    R visit(Constant<?> expr, @Nullable C context);

    /**
     * @param expr
     */
    @Nullable
    R visit(FactoryExpression<?> expr, @Nullable C context);

    /**
     * @param expr
     */
    @Nullable
    R visit(Operation<?> expr, @Nullable C context);

    /**
     * @param expr
     */
    @Nullable
    R visit(ParamExpression<?> expr, @Nullable C context);

    /**
     * @param expr
     */
    @Nullable
    R visit(Path<?> expr, @Nullable C context);

    /**
     * @param expr
     */
    @Nullable
    R visit(SubQueryExpression<?> expr, @Nullable C context);

    /**
     * @param expr
     */
    @Nullable
    R visit(TemplateExpression<?> expr, @Nullable C context);

}

@@ -617,43 +617,8 @@
 s;%0A%0A
-import javax.annotation.Nullable;%0A%0A
 /**%0A
@@ -777,38 +777,24 @@
 xpr%0A     */%0A
-    @Nullable%0A
     R visit(
@@ -806,34 +806,24 @@
 ant%3C?%3E expr,
- @Nullable
  C context);
@@ -855,38 +855,24 @@
 xpr%0A     */%0A
-    @Nullable%0A
     R visit(
@@ -893,34 +893,24 @@
 ion%3C?%3E expr,
- @Nullable
  C context);
@@ -942,38 +942,24 @@
 xpr%0A     */%0A
-    @Nullable%0A
     R visit(
@@ -972,34 +972,24 @@
 ion%3C?%3E expr,
- @Nullable
  C context);
@@ -1021,38 +1021,24 @@
 xpr%0A     */%0A
-    @Nullable%0A
     R visit(
@@ -1057,34 +1057,24 @@
 ion%3C?%3E expr,
- @Nullable
  C context);
@@ -1106,38 +1106,24 @@
 xpr%0A     */%0A
-    @Nullable%0A
     R visit(
@@ -1131,34 +1131,24 @@
 ath%3C?%3E expr,
- @Nullable
  C context);
@@ -1180,38 +1180,24 @@
 xpr%0A     */%0A
-    @Nullable%0A
     R visit(
@@ -1219,34 +1219,24 @@
 ion%3C?%3E expr,
- @Nullable
  C context);
@@ -1276,21 +1276,8 @@
  */%0A
-    @Nullable
 %0A   
@@ -1316,18 +1316,8 @@
 xpr,
- @Nullable
  C c

Simplify visitor signature