se.sics.prologbeans
Class SupportClass

Internal class for PrologBeans.

Constructor Summary
SupportClass()
        Initializes a new instance of the SupportClass class.

Method Summary
void GetCharsFromString(string sourceString, int sourceStart, int sourceEnd, char[] destinationArray, int destinationStart)
         Copies an array of chars obtained from a String into a specified array of chars
long Identity(long literal)
         This method is used as a dummy method to simulate VJ++ behavior
ulong Identity(ulong literal)
         This method is used as a dummy method to simulate VJ++ behavior
float Identity(float literal)
         This method is used as a dummy method to simulate VJ++ behavior
double Identity(double literal)
         This method is used as a dummy method to simulate VJ++ behavior
object PutElement(System.Collections.Hashtable hashTable, object key, object newValue)
        
byte[] ToByteArray(sbyte[] sbyteArray)
         Converts an array of sbytes to an array of bytes
byte[] ToByteArray(string sourceString)
         Converts a string to an array of bytes
sbyte[] ToSByteArray(byte[] byteArray)
        
void WriteStackTrace(System.Exception throwable, System.IO.TextWriter stream)
        

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

SupportClass

public SupportClass()

Initializes a new instance of the SupportClass class.

Method Detail

GetCharsFromString

public void GetCharsFromString(string sourceString,
                               int sourceStart,
                               int sourceEnd,
                               char[] destinationArray,
                               int destinationStart)

Copies an array of chars obtained from a String into a specified array of chars

Parameters:
sourceString - The String to get the chars from
sourceStart - Position of the String to start getting the chars
sourceEnd - Position of the String to end getting the chars
destinationArray - Array to return the chars
destinationStart - Position of the destination array of chars to start storing the chars
Returns:
An array of chars

Identity

public long Identity(long literal)

This method is used as a dummy method to simulate VJ++ behavior

Parameters:
literal - The literal to return
Returns:
The received value

Identity

public ulong Identity(ulong literal)

This method is used as a dummy method to simulate VJ++ behavior

Parameters:
literal - The literal to return
Returns:
The received value

Identity

public float Identity(float literal)

This method is used as a dummy method to simulate VJ++ behavior

Parameters:
literal - The literal to return
Returns:
The received value

Identity

public double Identity(double literal)

This method is used as a dummy method to simulate VJ++ behavior

Parameters:
literal - The literal to return
Returns:
The received value

PutElement

public object PutElement(System.Collections.Hashtable hashTable,
                         object key,
                         object newValue)


ToByteArray

public byte[] ToByteArray(sbyte[] sbyteArray)

Converts an array of sbytes to an array of bytes

Parameters:
sbyteArray - The array of sbytes to be converted
Returns:
The new array of bytes

ToByteArray

public byte[] ToByteArray(string sourceString)

Converts a string to an array of bytes

Parameters:
sourceString - The string to be converted
Returns:
The new array of bytes

ToSByteArray

public sbyte[] ToSByteArray(byte[] byteArray)


WriteStackTrace

public void WriteStackTrace(System.Exception throwable,
                            System.IO.TextWriter stream)