org.abora.gold.xpp.basic
Class StaticFunctionPointer

java.lang.Object
  |
  +--org.abora.gold.java.AboraHeaper
        |
        +--org.abora.gold.xpp.basic.StaticFunctionPointer

public class StaticFunctionPointer
extends AboraHeaper

An object that represents in Smalltalk the equivalent of a pointer to a class static
function in C++. When it gets the invokeFunction:with:... message, it sends mySelector to
the class, with the arguments of the invokeFunction message. This does the same thing that
the translated code would do if this were in fact a function pointer.


Field Summary
protected  java.lang.Class myClass
           
protected  Symbol mySelector
           
 
Fields inherited from class org.abora.gold.java.AboraHeaper
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag
 
Constructor Summary
StaticFunctionPointer(java.lang.Class classx, Selector selector)
           
 
Method Summary
 void invokeFunction()
           
 void invokeFunction(java.lang.Object arg1)
           
 void invokeFunction(java.lang.Object arg1, java.lang.Object arg2)
           
 void invokeFunction(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
           
 void invokeFunction(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
           
 void invokeFunction(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
           
 void invokeFunction(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6)
           
static Heaper make(java.lang.Class classx, Symbol selector)
          You should only call this from Smalltalk code.
 void printOn(java.lang.Object oo)
           
 void selector()
           
 void staticClass()
           
 
Methods inherited from class org.abora.gold.java.AboraHeaper
asOop, basicInspect, displayString, error, hack, halt, inspect, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myClass

protected java.lang.Class myClass

mySelector

protected Symbol mySelector
Constructor Detail

StaticFunctionPointer

public StaticFunctionPointer(java.lang.Class classx,
                             Selector selector)
Method Detail

invokeFunction

public void invokeFunction()

invokeFunction

public void invokeFunction(java.lang.Object arg1)

invokeFunction

public void invokeFunction(java.lang.Object arg1,
                           java.lang.Object arg2)

invokeFunction

public void invokeFunction(java.lang.Object arg1,
                           java.lang.Object arg2,
                           java.lang.Object arg3)

invokeFunction

public void invokeFunction(java.lang.Object arg1,
                           java.lang.Object arg2,
                           java.lang.Object arg3,
                           java.lang.Object arg4)

invokeFunction

public void invokeFunction(java.lang.Object arg1,
                           java.lang.Object arg2,
                           java.lang.Object arg3,
                           java.lang.Object arg4,
                           java.lang.Object arg5)

invokeFunction

public void invokeFunction(java.lang.Object arg1,
                           java.lang.Object arg2,
                           java.lang.Object arg3,
                           java.lang.Object arg4,
                           java.lang.Object arg5,
                           java.lang.Object arg6)

printOn

public void printOn(java.lang.Object oo)

selector

public void selector()

staticClass

public void staticClass()

make

public static Heaper make(java.lang.Class classx,
                          Symbol selector)
You should only call this from Smalltalk code. For translatable code, use
SomeClass pointerToStaticMember: #selector:with:



Translation - Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.