⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 worditemimpl.java

📁 goolge phone 目前没有开放的android 平台的源码
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   WordItemImpl.java

package android.speech.recognition.impl;

import android.speech.recognition.WordItem;

// Referenced classes of package android.speech.recognition.impl:
//            System

public class WordItemImpl extends WordItem
    implements Runnable
{

    private WordItemImpl(String word, String pronunciations[])
        throws IllegalArgumentException
    {
        System.getInstance().register(this);
        initNativeObject(word, pronunciations);
    }

    public void run()
    {
        dispose();
    }

    public static WordItemImpl valueOf(String word, String pronunciations[])
        throws IllegalArgumentException
    {
        if(word == null)
            throw new IllegalArgumentException("Word may not be null");
        if(pronunciations == null)
            throw new IllegalArgumentException("Pronunciations may not be null");
        int i = 0;
        for(int size = pronunciations.length; i < size; i++)
            if(pronunciations[i].trim().equals(""))
                throw new IllegalArgumentException("Pronunciations may not contain empty strings");

        return new WordItemImpl(word, pronunciations);
    }

    public static WordItemImpl valueOf(String word, String pronunciation)
        throws IllegalArgumentException
    {
        if(word == null)
            throw new IllegalArgumentException("Word may not be null");
        String pronunciations[];
        if(pronunciation == null)
        {
            pronunciations = guessPronunciations;
        } else
        {
            if(pronunciation.trim().equals(""))
                throw new IllegalArgumentException("Pronunciation may not be an empty string");
            pronunciations = (new String[] {
                pronunciation
            });
        }
        return new WordItemImpl(word, pronunciations);
    }

    private native void initNativeObject(String s, String as[]);

    private void dispose()
    {
        if(nativeObject != 0L)
        {
            deleteNativeObject(nativeObject);
            nativeObject = 0L;
        }
    }

    protected void finalize()
        throws Throwable
    {
        dispose();
        super.finalize();
    }

    private native void deleteNativeObject(long l);

    private static final String guessPronunciations[] = new String[0];
    private long nativeObject;

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -