Copy as Markdown

Other Tools

// GENERATED CODE
// Generated by the Java program at /build/annotationProcessors at compile time
// from annotations on Java methods. To update, change the annotations on the
// corresponding Java methods and rerun the build. Manually updating this file
// will cause your build to fail.
#ifndef MOZ_PREPROCESSOR
#include "mozilla/java/WebRequestWrappers.h"
#include "mozilla/jni/Accessors.h"
#endif
namespace mozilla {
namespace java {
constexpr char WebRequest::name[];
constexpr char WebRequest::New_t::name[];
constexpr char WebRequest::New_t::signature[];
auto WebRequest::New(mozilla::jni::String::Param a0) -> WebRequest::LocalRef
{
return mozilla::jni::Constructor<New_t>::Call(WebRequest::Context(), nullptr, a0);
}
constexpr char WebRequest::New2_t::name[];
constexpr char WebRequest::New2_t::signature[];
auto WebRequest::New(mozilla::jni::Object::Param a0) -> WebRequest::LocalRef
{
return mozilla::jni::Constructor<New2_t>::Call(WebRequest::Context(), nullptr, a0);
}
constexpr char WebRequest::BeConservative_t::name[];
constexpr char WebRequest::BeConservative_t::signature[];
auto WebRequest::BeConservative() const -> bool
{
return mozilla::jni::Field<BeConservative_t>::Get(WebRequest::mCtx, nullptr);
}
constexpr char WebRequest::Body_t::name[];
constexpr char WebRequest::Body_t::signature[];
auto WebRequest::Body() const -> mozilla::jni::ByteBuffer::LocalRef
{
return mozilla::jni::Field<Body_t>::Get(WebRequest::mCtx, nullptr);
}
constexpr char WebRequest::CacheMode_t::name[];
constexpr char WebRequest::CacheMode_t::signature[];
auto WebRequest::CacheMode() const -> int32_t
{
return mozilla::jni::Field<CacheMode_t>::Get(WebRequest::mCtx, nullptr);
}
constexpr char WebRequest::Method_t::name[];
constexpr char WebRequest::Method_t::signature[];
auto WebRequest::Method() const -> mozilla::jni::String::LocalRef
{
return mozilla::jni::Field<Method_t>::Get(WebRequest::mCtx, nullptr);
}
constexpr char WebRequest::Referrer_t::name[];
constexpr char WebRequest::Referrer_t::signature[];
auto WebRequest::Referrer() const -> mozilla::jni::String::LocalRef
{
return mozilla::jni::Field<Referrer_t>::Get(WebRequest::mCtx, nullptr);
}
} /* java */
} /* mozilla */