// Path: src/org/udalov/jclang/structs/CXIdxDeclInfo.java
// @SuppressWarnings("unused")
// public class CXIdxDeclInfo extends Structure {
//     public CXIdxEntityInfo.ByReference entityInfo;
//     public CXCursor.ByValue cursor;
//     public CXIdxLoc.ByValue loc;
//     public CXIdxContainerInfo.ByReference semanticContainer;
//     public CXIdxContainerInfo.ByReference lexicalContainer;
//     public boolean isRedeclaration;
//     public boolean isDefinition;
//     public boolean isContainer;
//     public CXIdxContainerInfo.ByReference declAsContainer;
//     public boolean isImplicit;
//     @Nullable
//     public PointerByReference /* CXIdxAttrInfo */ attributes;
//     public int numAttributes;
// 
//     public CXIdxDeclInfo() {
//         super();
//         setFieldOrder(new String[]{"entityInfo", "cursor", "loc", "semanticContainer", "lexicalContainer", "isRedeclaration",
//                                    "isDefinition", "isContainer", "declAsContainer", "isImplicit", "attributes", "numAttributes"});
//     }
// 
//     public static class ByReference extends CXIdxDeclInfo implements Structure.ByReference {}
// }


import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.udalov.jclang.structs.CXIdxDeclInfo;
import java.util.Collections;
import java.util.List;
/*
 * Copyright 2013 Alexander Udalov
 *
 * 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 org.udalov.jclang;



public class DeclarationInfo {
    private final EntityInfo entityInfo;
    private final Cursor cursor;
    private final IndexLocation location;
    private final ContainerInfo semanticContainer;
    private final ContainerInfo lexicalContainer;
    private final boolean isRedeclaration;
    private final boolean isDefinition;
    private final boolean isContainer;
    @Nullable
    private final ContainerInfo declAsContainer;
    private final boolean isImplicit;
    private final List<IndexAttribute> attributes;

// Path: src/org/udalov/jclang/structs/CXIdxDeclInfo.java
// @SuppressWarnings("unused")
// public class CXIdxDeclInfo extends Structure {
//     public CXIdxEntityInfo.ByReference entityInfo;
//     public CXCursor.ByValue cursor;
//     public CXIdxLoc.ByValue loc;
//     public CXIdxContainerInfo.ByReference semanticContainer;
//     public CXIdxContainerInfo.ByReference lexicalContainer;
//     public boolean isRedeclaration;
//     public boolean isDefinition;
//     public boolean isContainer;
//     public CXIdxContainerInfo.ByReference declAsContainer;
//     public boolean isImplicit;
//     @Nullable
//     public PointerByReference /* CXIdxAttrInfo */ attributes;
//     public int numAttributes;
// 
//     public CXIdxDeclInfo() {
//         super();
//         setFieldOrder(new String[]{"entityInfo", "cursor", "loc", "semanticContainer", "lexicalContainer", "isRedeclaration",
//                                    "isDefinition", "isContainer", "declAsContainer", "isImplicit", "attributes", "numAttributes"});
//     }
// 
//     public static class ByReference extends CXIdxDeclInfo implements Structure.ByReference {}
// }


// Path: src/org/udalov/jclang/DeclarationInfo.java
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.udalov.jclang.structs.CXIdxDeclInfo;
import java.util.Collections;
import java.util.List;

/*
 * Copyright 2013 Alexander Udalov
 *
 * 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 org.udalov.jclang;



public class DeclarationInfo {
    private final EntityInfo entityInfo;
    private final Cursor cursor;
    private final IndexLocation location;
    private final ContainerInfo semanticContainer;
    private final ContainerInfo lexicalContainer;
    private final boolean isRedeclaration;
    private final boolean isDefinition;
    private final boolean isContainer;
    @Nullable
    private final ContainerInfo declAsContainer;
    private final boolean isImplicit;
    private final List<IndexAttribute> attributes;

    public DeclarationInfo(@NotNull CXIdxDeclInfo info) {