// Path: src/org/udalov/jclang/structs/CXCursor.java
// @SuppressWarnings("unused")
// public class CXCursor extends Structure {
//     public int kind;
//     public int xdata;
//     public Pointer[] data = new Pointer[3];
// 
//     public CXCursor() {
//         super();
//         setFieldOrder(new String[]{"kind", "xdata", "data"});
//     }
//     
//     public static class ByValue extends CXCursor implements Structure.ByValue {}
// }
// 
// Path: src/org/udalov/jclang/structs/CXString.java
// @SuppressWarnings("unused")
// public class CXString extends Structure {
//     public Pointer data;
//     public int privateFlags;
// 
//     public CXString() {
//         super();
//         setFieldOrder(new String[]{"data", "privateFlags"});
//     }
// 
//     public static class ByValue extends CXString implements Structure.ByValue {}
// }


import org.jetbrains.annotations.NotNull;
import org.udalov.jclang.structs.CXCursor;
import org.udalov.jclang.structs.CXString;
/*
 * 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 Cursor {
    private final CXCursor.ByValue cursor;

    public Cursor(@NotNull CXCursor.ByValue cursor) {
        this.cursor = cursor;
    }

    @NotNull
    public String getSpelling() {
// Path: src/org/udalov/jclang/structs/CXCursor.java
// @SuppressWarnings("unused")
// public class CXCursor extends Structure {
//     public int kind;
//     public int xdata;
//     public Pointer[] data = new Pointer[3];
// 
//     public CXCursor() {
//         super();
//         setFieldOrder(new String[]{"kind", "xdata", "data"});
//     }
//     
//     public static class ByValue extends CXCursor implements Structure.ByValue {}
// }
// 
// Path: src/org/udalov/jclang/structs/CXString.java
// @SuppressWarnings("unused")
// public class CXString extends Structure {
//     public Pointer data;
//     public int privateFlags;
// 
//     public CXString() {
//         super();
//         setFieldOrder(new String[]{"data", "privateFlags"});
//     }
// 
//     public static class ByValue extends CXString implements Structure.ByValue {}
// }


// Path: src/org/udalov/jclang/Cursor.java
import org.jetbrains.annotations.NotNull;
import org.udalov.jclang.structs.CXCursor;
import org.udalov.jclang.structs.CXString;

/*
 * 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 Cursor {
    private final CXCursor.ByValue cursor;

    public Cursor(@NotNull CXCursor.ByValue cursor) {
        this.cursor = cursor;
    }

    @NotNull
    public String getSpelling() {
        CXString.ByValue spelling = LibClang.I.getCursorSpelling(cursor);