Class JOP.metadata.MetaSlot
All Packages  Class Hierarchy  This Package  Previous  Next  Index  Home

Class JOP.metadata.MetaSlot

java.lang.Object
   |
   +----JOP.metadata.MetaSlot

public final class MetaSlot
extends Object

This is an INTERNAL class.

JOP allows objects to be marshalled directly using native methods. There is one instance of this class created for each 'slot' of the object.

WARNING: This class uses native methods

WARNING: Use of this class bypasses elements of Java's security model, specifically any slot of an object can be accessed even if the calling application would not normally have access to those slots. Use with care.


Method Index

 o booleanArray()
 o booleanValue()
 o byteArray()
 o byteValue()
 o charArray()
 o charValue()
 o convertFromObject(Object)
Given an object, set the value of the slot to the value of the object performing whatever conversions are required.
 o convertFromObjectArray(Object[])
Given an array of objects, set the value of the slot to the value of the array performing whatever conversions are required.
 o convertToObject()
Return an object holding the value of the slot.
 o convertToObjectArray()
Return an object array holding the values of the slot.
 o doubleArray()
 o doubleValue()
 o floatArray()
 o floatValue()
 o getClassName()
Return the class name for a slot
 o getObject()
 o getObjectArray()
 o getSignature()
Return the signature of a slot.
 o getSlotName()
Return the name for a slot
 o intArray()
 o intValue()
 o isAccessible()
Return true of the slot is accessible.
 o isArray()
Return true of the slot is an array
 o longArray()
 o longValue()
 o set(boolean)
 o set(boolean[])
 o set(byte)
 o set(byte[])
 o set(char)
 o set(char[])
 o set(double)
 o set(double[])
 o set(float)
 o set(float[])
 o set(int)
 o set(int[])
 o set(long)
 o set(long[])
 o set(Object)
Sets a slot value to an object.
 o set(Object[])
 o set(short)
 o set(short[])
 o shortArray()
 o shortValue()
 o toString()
Print out the slot

Methods

 o getClassName
  public String getClassName()
Return the class name for a slot
 o getSignature
  public String getSignature()
Return the signature of a slot. The trailing ';' is removed.
 o getSlotName
  public String getSlotName()
Return the name for a slot
 o isAccessible
  public boolean isAccessible()
Return true of the slot is accessible. Static and transient slots will return false.
 o isArray
  public boolean isArray()
Return true of the slot is an array
 o toString
  public String toString()
Print out the slot
Overrides:
toString in class Object
 o convertFromObject
  public void convertFromObject(Object obj) throws BadSlotType, ClassNotFoundException
Given an object, set the value of the slot to the value of the object performing whatever conversions are required. Types and accessibility are checked.
 o convertFromObjectArray
  public void convertFromObjectArray(Object obj[]) throws BadSlotType, ClassNotFoundException
Given an array of objects, set the value of the slot to the value of the array performing whatever conversions are required. Types and accessibility are checked.
 o convertToObject
  public Object convertToObject() throws BadSlotType
Return an object holding the value of the slot. Scalar types are converted to their equivalent object types (eg int becomes java.lang.Integer). Scalar types 'short' and 'byte' are mapped to java.lang.Integer.
 o convertToObjectArray
  public Object[] convertToObjectArray() throws BadSlotType
Return an object array holding the values of the slot. Scalar types are converted to their equivalent object types (eg int[] becomes '[java.lang.Integer'). Scalar types 'short[]' and 'byte[]' are mapped to '[java.lang.Integer".
 o charValue
  public synchronized char charValue() throws BadSlotType
 o byteValue
  public synchronized byte byteValue() throws BadSlotType
 o floatValue
  public synchronized float floatValue() throws BadSlotType
 o doubleValue
  public synchronized double doubleValue() throws BadSlotType
 o intValue
  public synchronized int intValue() throws BadSlotType
 o shortValue
  public synchronized short shortValue() throws BadSlotType
 o longValue
  public synchronized long longValue() throws BadSlotType
 o booleanValue
  public synchronized boolean booleanValue() throws BadSlotType
 o getObject
  public synchronized Object getObject() throws BadSlotType
 o charArray
  public synchronized char[] charArray() throws BadSlotType
 o byteArray
  public synchronized byte[] byteArray() throws BadSlotType
 o floatArray
  public synchronized float[] floatArray() throws BadSlotType
 o doubleArray
  public synchronized double[] doubleArray() throws BadSlotType
 o intArray
  public synchronized int[] intArray() throws BadSlotType
 o shortArray
  public synchronized short[] shortArray() throws BadSlotType
 o longArray
  public synchronized long[] longArray() throws BadSlotType
 o booleanArray
  public synchronized boolean[] booleanArray() throws BadSlotType
 o getObjectArray
  public synchronized Object[] getObjectArray() throws BadSlotType
 o set
  public synchronized void set(char v) throws BadSlotType
 o set
  public synchronized void set(boolean v) throws BadSlotType
 o set
  public synchronized void set(long v) throws BadSlotType
 o set
  public synchronized void set(short v) throws BadSlotType
 o set
  public synchronized void set(int v) throws BadSlotType
 o set
  public synchronized void set(float v) throws BadSlotType
 o set
  public synchronized void set(double v) throws BadSlotType
 o set
  public synchronized void set(byte v) throws BadSlotType
 o set
  public synchronized void set(Object v) throws BadSlotType, ClassNotFoundException
Sets a slot value to an object. Accessibility and object type are checked.
 o set
  public synchronized void set(char v[]) throws BadSlotType
 o set
  public synchronized void set(boolean v[]) throws BadSlotType
 o set
  public synchronized void set(long v[]) throws BadSlotType
 o set
  public synchronized void set(short v[]) throws BadSlotType
 o set
  public synchronized void set(int v[]) throws BadSlotType
 o set
  public synchronized void set(float v[]) throws BadSlotType
 o set
  public synchronized void set(double v[]) throws BadSlotType
 o set
  public synchronized void set(byte v[]) throws BadSlotType
 o set
  public synchronized void set(Object v[]) throws BadSlotType, ClassNotFoundException

All Packages  Class Hierarchy  This Package  Previous  Next  Index  Home