View Javadoc
1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.devtools.jpa.eclipselink.conv.parser.helper;
17  
18  import japa.parser.ast.ImportDeclaration;
19  import japa.parser.ast.body.ClassOrInterfaceDeclaration;
20  import japa.parser.ast.expr.AnnotationExpr;
21  
22  import java.util.Collection;
23  
24  public class NodeData {
25      final AnnotationExpr annotation;
26      final ImportDeclaration annotationImport;
27      final Collection<ImportDeclaration> additionalImports;
28      final ClassOrInterfaceDeclaration nestedDeclaration;
29  
30  
31      public NodeData(AnnotationExpr annotation, ImportDeclaration annotationImport) {
32          this(annotation, annotationImport, null, null);
33      }
34  
35      public NodeData(AnnotationExpr annotation, ImportDeclaration annotationImport, Collection<ImportDeclaration> additionalImports) {
36          this(annotation, annotationImport, additionalImports, null);
37      }
38  
39      public NodeData(AnnotationExpr annotation, ImportDeclaration annotationImport, ClassOrInterfaceDeclaration nestedDeclaration) {
40          this(annotation, annotationImport, null, nestedDeclaration);
41      }
42  
43      public NodeData(AnnotationExpr annotation, ImportDeclaration annotationImport, Collection<ImportDeclaration> additionalImports, ClassOrInterfaceDeclaration nestedDeclaration) {
44          this.annotation = annotation;
45          this.annotationImport = annotationImport;
46          this.additionalImports = additionalImports;
47          this.nestedDeclaration = nestedDeclaration;
48      }
49  }