001/** 002 * Copyright 2013 John Ericksen 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.androidtransfuse.util; 017 018import org.androidtransfuse.adapter.ASTStringType; 019import org.androidtransfuse.adapter.ASTType; 020 021/** 022 * @author John Ericksen 023 */ 024public final class AndroidLiterals { 025 026 public static final ASTType ACTIVITY = new ASTStringType("android.app.Activity"); 027 public static final ASTType LIST_ACTIVITY = new ASTStringType("android.app.ListActivity"); 028 public static final ASTType APPLICATION = new ASTStringType("android.app.Application"); 029 public static final ASTType CONTEXT = new ASTStringType("android.content.Context"); 030 public static final ASTType BUNDLE = new ASTStringType("android.os.Bundle"); 031 public static final ASTType CONTENT_CONFIGURATION = new ASTStringType("android.content.res.Configuration"); 032 public static final ASTType BROADCAST_RECEIVER = new ASTStringType("android.content.BroadcastReceiver"); 033 public static final ASTType INTENT = new ASTStringType("android.content.Intent"); 034 public static final ASTType SERVICE = new ASTStringType("android.app.Service"); 035 public static final ASTType INTENT_SERVICE = new ASTStringType("android.app.IntentService"); 036 public static final ASTType IBINDER = new ASTStringType("android.os.IBinder"); 037 public static final ASTType FRAGMENT = new ASTStringType("android.support.v4.app.Fragment"); 038 public static final ASTType FRAGMENT_MANAGER = new ASTStringType("android.support.v4.app.FragmentManager"); 039 public static final ASTType LIST_FRAGMENT = new ASTStringType("android.support.v4.app.ListFragment"); 040 public static final ASTType LAYOUT_INFLATER = new ASTStringType("android.view.LayoutInflater"); 041 public static final ASTType VIEW = new ASTStringType("android.view.View"); 042 public static final ASTType ADAPTER_VIEW = new ASTStringType("android.widget.AdapterView"); 043 public static final ASTType ABS_LIST_VIEw = new ASTStringType("android.widget.AbsListView"); 044 public static final ASTType VIEW_GROUP = new ASTStringType("android.view.ViewGroup"); 045 public static final ASTType LIST_VIEW = new ASTStringType("android.widget.ListView"); 046 public static final ASTType TEXT_VIEW = new ASTStringType("android.widget.TextView"); 047 public static final ASTType VIEW_ON_CLICK_LISTENER = new ASTStringType("android.view.View.OnClickListener"); 048 public static final ASTType VIEW_ON_LONG_CLICK_LISTENER = new ASTStringType("android.view.View.OnLongClickListener"); 049 public static final ASTType VIEW_ON_CREATE_CONTEXT_MENU_LISTENER = new ASTStringType("android.view.View.OnCreateContextMenuListener"); 050 public static final ASTType VIEW_ON_KEY_LISTENER = new ASTStringType("android.view.View.OnKeyListener"); 051 public static final ASTType VIEW_ON_TOUCH_LISTENER = new ASTStringType("android.view.View.OnTouchListener"); 052 public static final ASTType VIEW_ON_FOCUS_CHANGE_LISTENER = new ASTStringType("android.view.View.OnFocusChangeListener"); 053 public static final ASTType ADAPTER_VIEW_ON_ITEM_CLICK_LISTENER = new ASTStringType("android.widget.AdapterView.OnItemClickListener"); 054 public static final ASTType ADAPTER_VIEW_ON_ITEM_LONG_CLICK_LISTENER = new ASTStringType("android.widget.AdapterView.OnItemLongClickListener"); 055 public static final ASTType ADAPTER_VIEW_ON_ITEM_SELECTED_LISTENER = new ASTStringType("android.widget.AdapterView.OnItemSelectedListener"); 056 public static final ASTType ABS_LIST_VIEW_ON_SCROLL_LISTENER = new ASTStringType("android.widget.AbsListView.OnScrollListener"); 057 public static final ASTType ABS_LIST_VIEW_MULTI_CHOICE_MODE_LISTENER = new ASTStringType("android.widget.AbsListView.MultiChoiceModeListener"); 058 public static final ASTType ABS_LIST_VIEW_RECYCLER_LISTENER = new ASTStringType("android.widget.AbsListView.RecyclerListener"); 059 public static final ASTType TEXT_VIEW_ON_EDITOR_ACTION_LISTENER = new ASTStringType("android.widget.TextView.OnEditorActionListener"); 060 public static final ASTType PREFERENCE_ACTIVITY = new ASTStringType("android.preference.PreferenceActivity"); 061 public static final ASTType ACTIVITY_GROUP = new ASTStringType("android.app.ActivityGroup"); 062 public static final ASTType RESOURCES = new ASTStringType("android.content.res.Resources"); 063 public static final ASTType PREFERENCE_MANAGER = new ASTStringType("android.preference.PreferenceManager"); 064 public static final ASTType SHARED_PREFERENCES = new ASTStringType("android.content.SharedPreferences"); 065 public static final ASTType MENU_INFLATER = new ASTStringType("android.view.MenuInflater"); 066 public static final ASTType PARCELABLE = new ASTStringType("android.os.Parcelable"); 067 public static final ASTType COLOR_STATE_LIST = new ASTStringType("android.content.res.ColorStateList"); 068 public static final ASTType GRAPHICS_MOVIE = new ASTStringType("android.graphics.Movie"); 069 public static final ASTType GRAPHICS_DRAWABLE = new ASTStringType("android.graphics.drawable.Drawable"); 070 public static final ASTType ANIMATION = new ASTStringType("android.view.animation.Animation"); 071 public static final ASTType ANIMATION_UTILS = new ASTStringType("android.view.animation.AnimationUtils"); 072 073 private AndroidLiterals(){ 074 //private utility class constructor 075 } 076}