com.blueworld.lassopro
Class LassoTypeRef
java.lang.Object
|
+--com.blueworld.lassopro.LassoTypeRef
- public class LassoTypeRef
- extends java.lang.Object
Used for creating and manipulating custom Lasso types.
Unlike LassoValue
and IntValue
objects
which store copies of the data, LassoTypeRef
is merely a
reference to a native object instance. Native objects exist for a fraction
of a second while Lasso is processing a page, therefore the LassoTypeRef
objects should never be stored/reused across multiple module invocations.
LassoTypeRef array = new LassoTypeRef();
if ( lasso.typeAlloc( array, LassoTypeRef.LASSO_ARRAY ) == ERR_NOERR && !array.isNull() )
{
LassoValue val = new LassoValue();
lasso.typeGetName( array, val );
lasso.outputTagData( "Type name: " + val.data() );
}
Method Summary |
boolean |
isNull()
returns true if this object does not refer to a valid type instance.
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LASSO_NULL
public static final java.lang.String LASSO_NULL
- See Also:
- Constant Field Values
LASSO_BOOLEAN
public static final java.lang.String LASSO_BOOLEAN
- See Also:
- Constant Field Values
LASSO_STRING
public static final java.lang.String LASSO_STRING
- See Also:
- Constant Field Values
LASSO_INTEGER
public static final java.lang.String LASSO_INTEGER
- See Also:
- Constant Field Values
LASSO_DECIMAL
public static final java.lang.String LASSO_DECIMAL
- See Also:
- Constant Field Values
LASSO_DATE
public static final java.lang.String LASSO_DATE
- See Also:
- Constant Field Values
LASSO_PAIR
public static final java.lang.String LASSO_PAIR
- See Also:
- Constant Field Values
LASSO_ARRAY
public static final java.lang.String LASSO_ARRAY
- See Also:
- Constant Field Values
LASSO_MAP
public static final java.lang.String LASSO_MAP
- See Also:
- Constant Field Values
LASSO_TAG
public static final java.lang.String LASSO_TAG
- See Also:
- Constant Field Values
LassoTypeRef
public LassoTypeRef()
isNull
public boolean isNull()
- returns
true
if this object does not refer to a valid type instance.
This could be a result of a failed LassoCall
method.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object