The open source OpenXR runtime
1// Copyright 2022, Qualcomm Innovation Center, Inc.
2// SPDX-License-Identifier: BSL-1.0
3// Author: Jarvis Huang
4
5#pragma once
6
7#include "ObjectWrapperBase.h"
8
9namespace wrap {
10namespace java::io {
11/*!
12 * Wrapper for java.io.File objects.
13 */
14class File : public ObjectWrapperBase {
15 public:
16 using ObjectWrapperBase::ObjectWrapperBase;
17 static constexpr const char *getTypeName() noexcept {
18 return "java/io/File";
19 }
20
21 /*!
22 * Wrapper for the getAbsolutePath method
23 *
24 * Java prototype:
25 * `public java.lang.String getAbsolutePath();`
26 *
27 * JNI signature: ()Ljava/lang/String;
28 *
29 */
30 std::string getAbsolutePath() const;
31
32 /*!
33 * Class metadata
34 */
35 struct Meta : public MetaBase {
36 jni::method_t getAbsolutePath ;
37
38 /*!
39 * Singleton accessor
40 */
41 static Meta &data() {
42 static Meta instance{};
43 return instance;
44 }
45
46 private:
47 Meta();
48 };
49};
50
51} // namespace java::io
52} // namespace wrap
53#include "java.io.impl.h"