Business Objects
Quark Platform Documentation
Version 1.7.0_0
Business Objects

org.openquark.cal.runtime.lecc
Class StandaloneRuntime

java.lang.Object
  extended by org.openquark.cal.runtime.lecc.StandaloneRuntime

public final class StandaloneRuntime
extends Object

This non-instantiable class contains utility methods for supporting the use of standalone JARs.

Author:
Joseph Wong

Method Summary
static ExecutionContext makeExecutionContext(Class<?> callerClass)
          Factory method for constructing an instance of this class with the default properties and a suitable class loader for loading foreign classes and accessing resources in standalone JARs.
static ExecutionContext makeExecutionContext(ClassLoader classloader)
          Factory method for constructing an instance of this class with the default properties and the specified class loader for loading foreign classes and accessing resources in standalone JARs.
static ExecutionContext makeExecutionContext(ExecutionContextProperties properties, Class<?> callerClass)
          Factory method for constructing an instance of this class with the specified properties and a suitable class loader for loading foreign classes and accessing resources in standalone JARs.
static ExecutionContext makeExecutionContext(ExecutionContextProperties properties, ClassLoader classloader)
          Factory method for constructing an instance of this class with the specified properties and the specified class loader for loading foreign classes and accessing resources in standalone JARs.
static CalValue toCalValue(BigInteger value)
          Constructs a representation of the given value as a CalValue.
static CalValue toCalValue(boolean value)
          Constructs a representation of the given value as a CalValue.
static CalValue toCalValue(byte value)
          Constructs a representation of the given value as a CalValue.
static CalValue toCalValue(char value)
          Constructs a representation of the given value as a CalValue.
static CalValue toCalValue(double value)
          Constructs a representation of the given value as a CalValue.
static CalValue toCalValue(float value)
          Constructs a representation of the given value as a CalValue.
static CalValue toCalValue(int value)
          Constructs a representation of the given value as a CalValue.
static CalValue toCalValue(long value)
          Constructs a representation of the given value as a CalValue.
static CalValue toCalValue(Object value)
          Constructs a representation of the given value as a CalValue.
static CalValue toCalValue(short value)
          Constructs a representation of the given value as a CalValue.
static CalValue toCalValue(String value)
          Constructs a representation of the given value as a CalValue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeExecutionContext

public static ExecutionContext makeExecutionContext(Class<?> callerClass)
Factory method for constructing an instance of this class with the default properties and a suitable class loader for loading foreign classes and accessing resources in standalone JARs.

Parameters:
callerClass - the class object whose class loader is to be used for loading foreign classes and accessing resources when running in standalone JAR mode. Must be non-null.
Returns:
an execution context for use with standalone JARs.

makeExecutionContext

public static ExecutionContext makeExecutionContext(ClassLoader classloader)
Factory method for constructing an instance of this class with the default properties and the specified class loader for loading foreign classes and accessing resources in standalone JARs.

Parameters:
classloader - the class loader for loading foreign classes and accessing resources when running in standalone JAR mode. Must be non-null.
Returns:
an execution context for use with standalone JARs.

makeExecutionContext

public static ExecutionContext makeExecutionContext(ExecutionContextProperties properties,
                                                    Class<?> callerClass)
Factory method for constructing an instance of this class with the specified properties and a suitable class loader for loading foreign classes and accessing resources in standalone JARs.

Parameters:
properties - the properties to be associated with the execution context.
callerClass - the class object whose class loader is to be used for loading foreign classes and accessing resources when running in standalone JAR mode. Must be non-null.
Returns:
an execution context for use with standalone JARs.

makeExecutionContext

public static ExecutionContext makeExecutionContext(ExecutionContextProperties properties,
                                                    ClassLoader classloader)
Factory method for constructing an instance of this class with the specified properties and the specified class loader for loading foreign classes and accessing resources in standalone JARs.

Parameters:
properties - the properties to be associated with the execution context.
classloader - the class loader for loading foreign classes and accessing resources when running in standalone JAR mode. Must be non-null.
Returns:
an execution context for use with standalone JARs.

toCalValue

public static CalValue toCalValue(char value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

toCalValue

public static CalValue toCalValue(boolean value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

toCalValue

public static CalValue toCalValue(byte value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

toCalValue

public static CalValue toCalValue(short value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

toCalValue

public static CalValue toCalValue(int value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

toCalValue

public static CalValue toCalValue(float value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

toCalValue

public static CalValue toCalValue(long value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

toCalValue

public static CalValue toCalValue(double value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

toCalValue

public static CalValue toCalValue(String value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

toCalValue

public static CalValue toCalValue(BigInteger value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

toCalValue

public static CalValue toCalValue(Object value)
Constructs a representation of the given value as a CalValue.

Parameters:
value - the value to wrap.
Returns:
the corresponding CalValue.

Business Objects
Quark Platform Documentation
Version 1.7.0_0
Business Objects

Copyright © 2007 Business Objects. All rights reserved.