org.appcelerator.kroll
Class KrollInvocation

java.lang.Object
  extended by org.appcelerator.kroll.KrollInvocation

public class KrollInvocation
extends java.lang.Object


Field Summary
protected  java.util.ArrayList<KrollArgument> arguments
           
protected static KrollInvocation invocationPool
           
protected static java.lang.Object invocationPoolSync
           
protected  boolean isMethod
           
protected  boolean isPropertyGet
           
protected  boolean isPropertySet
           
protected static int MAX_POOL_SIZE
           
protected  KrollMethod method
           
protected  java.lang.String name
           
protected  KrollInvocation next
           
protected static int poolSize
           
protected  KrollProperty property
           
protected  KrollProxy proxy
           
protected  org.mozilla.javascript.Scriptable scope
           
protected  org.mozilla.javascript.Scriptable thisObj
           
protected  TiContext tiContext
           
 
Constructor Summary
protected KrollInvocation()
           
 
Method Summary
 void addArgument(KrollArgument arg)
           
protected  void clearForRecycle()
           
 KrollInvocation copy()
           
static KrollInvocation createMethodInvocation(org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.String name, KrollMethod method, KrollProxy proxy)
           
static KrollInvocation createMethodInvocation(TiContext tiContext, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.String name, KrollMethod method, KrollProxy proxy)
           
static KrollInvocation createPropertyGetInvocation(org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.String name, KrollProperty property, KrollProxy proxy)
           
static KrollInvocation createPropertyGetInvocation(TiContext tiContext, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.String name, KrollProperty property, KrollProxy proxy)
           
static KrollInvocation createPropertySetInvocation(org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.String name, KrollProperty property, KrollProxy proxy)
           
static KrollInvocation createPropertySetInvocation(TiContext tiContext, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.String name, KrollProperty property, KrollProxy proxy)
           
 android.app.Activity getActivity()
           
 KrollArgument getArgument(java.lang.String name)
           
 java.util.List<KrollArgument> getArguments()
           
 KrollMethod getMethod()
           
 java.lang.String getName()
           
 KrollProperty getProperty()
           
 KrollProxy getProxy()
           
 org.mozilla.javascript.Scriptable getScope()
           
 org.mozilla.javascript.Scriptable getThisObj()
           
 TiContext getTiContext()
           
 boolean isDefaultValue(java.lang.String argName)
           
 boolean isMethod()
           
 boolean isPropertyGet()
           
 boolean isPropertySet()
           
protected static KrollInvocation obtainInvocation()
           
 void recycle()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

invocationPoolSync

protected static java.lang.Object invocationPoolSync

invocationPool

protected static KrollInvocation invocationPool

poolSize

protected static int poolSize

MAX_POOL_SIZE

protected static final int MAX_POOL_SIZE
See Also:
Constant Field Values

scope

protected org.mozilla.javascript.Scriptable scope

thisObj

protected org.mozilla.javascript.Scriptable thisObj

name

protected java.lang.String name

isPropertyGet

protected boolean isPropertyGet

isPropertySet

protected boolean isPropertySet

isMethod

protected boolean isMethod

method

protected KrollMethod method

arguments

protected java.util.ArrayList<KrollArgument> arguments

property

protected KrollProperty property

tiContext

protected TiContext tiContext

proxy

protected KrollProxy proxy

next

protected KrollInvocation next
Constructor Detail

KrollInvocation

protected KrollInvocation()
Method Detail

obtainInvocation

protected static KrollInvocation obtainInvocation()

createMethodInvocation

public static KrollInvocation createMethodInvocation(org.mozilla.javascript.Scriptable scope,
                                                     org.mozilla.javascript.Scriptable thisObj,
                                                     java.lang.String name,
                                                     KrollMethod method,
                                                     KrollProxy proxy)

createMethodInvocation

public static KrollInvocation createMethodInvocation(TiContext tiContext,
                                                     org.mozilla.javascript.Scriptable scope,
                                                     org.mozilla.javascript.Scriptable thisObj,
                                                     java.lang.String name,
                                                     KrollMethod method,
                                                     KrollProxy proxy)

createPropertyGetInvocation

public static KrollInvocation createPropertyGetInvocation(org.mozilla.javascript.Scriptable scope,
                                                          org.mozilla.javascript.Scriptable thisObj,
                                                          java.lang.String name,
                                                          KrollProperty property,
                                                          KrollProxy proxy)

createPropertyGetInvocation

public static KrollInvocation createPropertyGetInvocation(TiContext tiContext,
                                                          org.mozilla.javascript.Scriptable scope,
                                                          org.mozilla.javascript.Scriptable thisObj,
                                                          java.lang.String name,
                                                          KrollProperty property,
                                                          KrollProxy proxy)

createPropertySetInvocation

public static KrollInvocation createPropertySetInvocation(org.mozilla.javascript.Scriptable scope,
                                                          org.mozilla.javascript.Scriptable thisObj,
                                                          java.lang.String name,
                                                          KrollProperty property,
                                                          KrollProxy proxy)

createPropertySetInvocation

public static KrollInvocation createPropertySetInvocation(TiContext tiContext,
                                                          org.mozilla.javascript.Scriptable scope,
                                                          org.mozilla.javascript.Scriptable thisObj,
                                                          java.lang.String name,
                                                          KrollProperty property,
                                                          KrollProxy proxy)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addArgument

public void addArgument(KrollArgument arg)

getArguments

public java.util.List<KrollArgument> getArguments()

getArgument

public KrollArgument getArgument(java.lang.String name)

isDefaultValue

public boolean isDefaultValue(java.lang.String argName)

recycle

public void recycle()

copy

public KrollInvocation copy()

clearForRecycle

protected void clearForRecycle()

getScope

public org.mozilla.javascript.Scriptable getScope()

getThisObj

public org.mozilla.javascript.Scriptable getThisObj()

getName

public java.lang.String getName()

isPropertyGet

public boolean isPropertyGet()

isPropertySet

public boolean isPropertySet()

getProperty

public KrollProperty getProperty()

getTiContext

public TiContext getTiContext()

getActivity

public android.app.Activity getActivity()

isMethod

public boolean isMethod()

getMethod

public KrollMethod getMethod()

getProxy

public KrollProxy getProxy()


Copyright © 2010 Appcelerator, Inc. Licensed under the Apache License 2.0