Trait droid_wrap::JType

source ·
pub trait JType: JObjRef + JObjNew {
    type Error;

    const CLASS: &'static str;
    const OBJECT_SIG: &'static str;
}
Expand description

用于描述java类的信息。

Required Associated Types§

source

type Error

错误类型。

Required Associated Constants§

source

const CLASS: &'static str

java类的名称。

source

const OBJECT_SIG: &'static str

对象的签名描述。

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl JType for String

§

type Error = Error

source§

const CLASS: &'static str = "java/lang/String"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/String;"

source§

impl<T: JType> JType for Rc<T>

source§

const CLASS: &'static str = T::CLASS

§

type Error = <T as JType>::Error

source§

const OBJECT_SIG: &'static str = T::OBJECT_SIG

source§

impl<T: JType> JType for Arc<T>

source§

const CLASS: &'static str = T::CLASS

§

type Error = <T as JType>::Error

source§

const OBJECT_SIG: &'static str = T::OBJECT_SIG

source§

impl<T: JType> JType for Mutex<T>

source§

const CLASS: &'static str = T::CLASS

§

type Error = <T as JType>::Error

source§

const OBJECT_SIG: &'static str = T::OBJECT_SIG

Implementors§

source§

impl JType for Activity

§

type Error = Error

source§

const CLASS: &'static str = "android/app/Activity"

source§

const OBJECT_SIG: &'static str = "Landroid/app/Activity;"

source§

impl JType for Context

§

type Error = Error

source§

const CLASS: &'static str = "android/content/Context"

source§

const OBJECT_SIG: &'static str = "Landroid/content/Context;"

source§

impl JType for ContextWrapper

§

type Error = Error

source§

const CLASS: &'static str = "android/content/ContextWrapper"

source§

const OBJECT_SIG: &'static str = "Landroid/content/ContextWrapper;"

source§

impl JType for Intent

§

type Error = Error

source§

const CLASS: &'static str = "android/content/Intent"

source§

const OBJECT_SIG: &'static str = "Landroid/content/Intent;"

source§

impl JType for AudioManager

§

type Error = Error

source§

const CLASS: &'static str = "android/media/AudioManager"

source§

const OBJECT_SIG: &'static str = "Landroid/media/AudioManager;"

source§

impl JType for Build

§

type Error = Error

source§

const CLASS: &'static str = "android/os/Build"

source§

const OBJECT_SIG: &'static str = "Landroid/os/Build;"

source§

impl JType for Build_VERSION

§

type Error = Error

source§

const CLASS: &'static str = "android/os/Build$VERSION"

source§

const OBJECT_SIG: &'static str = "Landroid/os/Build$VERSION;"

source§

impl JType for Build_VERSION_CODES

§

type Error = Error

source§

const CLASS: &'static str = "android/os/Build$VERSION_CODES"

source§

const OBJECT_SIG: &'static str = "Landroid/os/Build$VERSION_CODES;"

source§

impl JType for Bundle

§

type Error = Error

source§

const CLASS: &'static str = "android/os/Bundle"

source§

const OBJECT_SIG: &'static str = "Landroid/os/Bundle;"

source§

impl JType for SystemProperties

§

type Error = Error

source§

const CLASS: &'static str = "android/os/SystemProperties"

source§

const OBJECT_SIG: &'static str = "Landroid/os/SystemProperties;"

source§

impl JType for SystemProperties_Handle

§

type Error = Error

source§

const CLASS: &'static str = "android/os/SystemProperties_Handle"

source§

const OBJECT_SIG: &'static str = "Landroid/os/SystemProperties_Handle;"

source§

impl JType for VibrationEffect

§

type Error = Error

source§

const CLASS: &'static str = "android/os/VibrationEffect"

source§

const OBJECT_SIG: &'static str = "Landroid/os/VibrationEffect;"

source§

impl JType for Vibrator

§

type Error = Error

source§

const CLASS: &'static str = "android/os/Vibrator"

source§

const OBJECT_SIG: &'static str = "Landroid/os/Vibrator;"

source§

impl JType for VibratorManager

§

type Error = Error

source§

const CLASS: &'static str = "android/os/VibratorManager"

source§

const OBJECT_SIG: &'static str = "Landroid/os/VibratorManager;"

source§

impl JType for TextToSpeech

§

type Error = Error

source§

const CLASS: &'static str = "android/speech/tts/TextToSpeech"

source§

const OBJECT_SIG: &'static str = "Landroid/speech/tts/TextToSpeech;"

source§

impl JType for EditorInfo

§

type Error = Error

source§

const CLASS: &'static str = "android/view/inputmethod/EditorInfo"

source§

const OBJECT_SIG: &'static str = "Landroid/view/inputmethod/EditorInfo;"

source§

impl JType for InputMethodManager

§

type Error = Error

source§

const CLASS: &'static str = "android/view/inputmethod/InputMethodManager"

source§

const OBJECT_SIG: &'static str = "Landroid/view/inputmethod/InputMethodManager;"

source§

impl JType for Display

§

type Error = Error

source§

const CLASS: &'static str = "android/view/Display"

source§

const OBJECT_SIG: &'static str = "Landroid/view/Display;"

source§

impl JType for InputEvent

§

type Error = Error

source§

const CLASS: &'static str = "android/view/InputEvent"

source§

const OBJECT_SIG: &'static str = "Landroid/view/InputEvent;"

source§

impl JType for KeyEvent

§

type Error = Error

source§

const CLASS: &'static str = "android/view/KeyEvent"

source§

const OBJECT_SIG: &'static str = "Landroid/view/KeyEvent;"

source§

impl JType for View

§

type Error = Error

source§

const CLASS: &'static str = "android/view/View"

source§

const OBJECT_SIG: &'static str = "Landroid/view/View;"

source§

impl JType for ViewGroup

§

type Error = Error

source§

const CLASS: &'static str = "android/view/ViewGroup"

source§

const OBJECT_SIG: &'static str = "Landroid/view/ViewGroup;"

source§

impl JType for ViewGroup_LayoutParams

§

type Error = Error

source§

const CLASS: &'static str = "android/view/ViewGroup$LayoutParams"

source§

const OBJECT_SIG: &'static str = "Landroid/view/ViewGroup$LayoutParams;"

source§

impl JType for ViewGroup_MarginLayoutParams

§

type Error = Error

source§

const CLASS: &'static str = "android/view/ViewGroup$MarginLayoutParams"

source§

const OBJECT_SIG: &'static str = "Landroid/view/ViewGroup$MarginLayoutParams;"

source§

impl JType for Button

§

type Error = Error

source§

const CLASS: &'static str = "android/widget/Button"

source§

const OBJECT_SIG: &'static str = "Landroid/widget/Button;"

source§

impl JType for EditText

§

type Error = Error

source§

const CLASS: &'static str = "android/widget/EditText"

source§

const OBJECT_SIG: &'static str = "Landroid/widget/EditText;"

source§

impl JType for LinearLayout

§

type Error = Error

source§

const CLASS: &'static str = "android/widget/LinearLayout"

source§

const OBJECT_SIG: &'static str = "Landroid/widget/LinearLayout;"

source§

impl JType for LinearLayout_LayoutParams

§

type Error = Error

source§

const CLASS: &'static str = "android/widget/LinearLayout$LayoutParams"

source§

const OBJECT_SIG: &'static str = "Landroid/widget/LinearLayout$LayoutParams;"

source§

impl JType for TextView

§

type Error = Error

source§

const CLASS: &'static str = "android/widget/TextView"

source§

const OBJECT_SIG: &'static str = "Landroid/widget/TextView;"

source§

impl JType for DexClassLoader

§

type Error = Error

source§

const CLASS: &'static str = "dalvik/system/DexClassLoader"

source§

const OBJECT_SIG: &'static str = "Ldalvik/system/DexClassLoader;"

source§

impl JType for InMemoryDexClassLoader

§

type Error = Error

source§

const CLASS: &'static str = "dalvik/system/InMemoryDexClassLoader"

source§

const OBJECT_SIG: &'static str = "Ldalvik/system/InMemoryDexClassLoader;"

source§

impl JType for File

§

type Error = Error

source§

const CLASS: &'static str = "java/io/File"

source§

const OBJECT_SIG: &'static str = "Ljava/io/File;"

source§

impl JType for Executable

§

type Error = Error

source§

const CLASS: &'static str = "java/lang/reflect/Executable"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/reflect/Executable;"

source§

impl JType for Method

§

type Error = Error

source§

const CLASS: &'static str = "java/lang/reflect/Method"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/reflect/Method;"

source§

impl JType for Boolean

§

type Error = Error

source§

const CLASS: &'static str = "java/lang/Boolean"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/Boolean;"

source§

impl JType for ClassLoader

§

type Error = Error

source§

const CLASS: &'static str = "java/lang/ClassLoader"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/ClassLoader;"

source§

impl JType for Float

§

type Error = Error

source§

const CLASS: &'static str = "java/lang/Float"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/Float;"

source§

impl JType for Integer

§

type Error = Error

source§

const CLASS: &'static str = "java/lang/Integer"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/Integer;"

source§

impl JType for Object

§

type Error = Error

source§

const CLASS: &'static str = "java/lang/Object"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/Object;"

source§

impl JType for System

§

type Error = Error

source§

const CLASS: &'static str = "java/lang/System"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/System;"

source§

impl JType for ByteBuffer

§

type Error = Error

source§

const CLASS: &'static str = "java/nio/ByteBuffer"

source§

const OBJECT_SIG: &'static str = "Ljava/nio/ByteBuffer;"