001/** 002 * Copyright 2005-2016 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.devtools.jpa.eclipselink.conv.parser.helper; 017 018import japa.parser.ast.ImportDeclaration; 019import japa.parser.ast.body.ClassOrInterfaceDeclaration; 020import japa.parser.ast.expr.AnnotationExpr; 021 022import java.util.Collection; 023 024public class NodeData { 025 final AnnotationExpr annotation; 026 final ImportDeclaration annotationImport; 027 final Collection<ImportDeclaration> additionalImports; 028 final ClassOrInterfaceDeclaration nestedDeclaration; 029 030 031 public NodeData(AnnotationExpr annotation, ImportDeclaration annotationImport) { 032 this(annotation, annotationImport, null, null); 033 } 034 035 public NodeData(AnnotationExpr annotation, ImportDeclaration annotationImport, Collection<ImportDeclaration> additionalImports) { 036 this(annotation, annotationImport, additionalImports, null); 037 } 038 039 public NodeData(AnnotationExpr annotation, ImportDeclaration annotationImport, ClassOrInterfaceDeclaration nestedDeclaration) { 040 this(annotation, annotationImport, null, nestedDeclaration); 041 } 042 043 public NodeData(AnnotationExpr annotation, ImportDeclaration annotationImport, Collection<ImportDeclaration> additionalImports, ClassOrInterfaceDeclaration nestedDeclaration) { 044 this.annotation = annotation; 045 this.annotationImport = annotationImport; 046 this.additionalImports = additionalImports; 047 this.nestedDeclaration = nestedDeclaration; 048 } 049}