Class InternalCode

java.lang.Object
com.semedy.reasoner.api.symboltable.ExternalDataType
com.semedy.reasoner.symboltable.encoder.InternalCode

public class InternalCode extends ExternalDataType
  • Constructor Summary

    Constructors
    Constructor
    Description
    InternalCode(long code)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    directDecode(long code)
    Decode the code (if possible)
    The encoding of the standard types looks as following:
    _direct = 1L << 63; indicates that the code is direct encoded
    _shortstring = 1L << 62; bit 62 must not be used for another encoding
    _inttype = 2L << 59
    _floattype = 3L << 59
    _booleantype = 4L << 59
    long
    Encode the value of this as a long (if possible) delivers 0 if it is not possible
    boolean
     
    byte[]
    Create a byte representation
    Used in symbol table to write this byte representation to file
    byte
    return unique id of external data type (50..100)
    byte[]
    Create a byte representation of the key used in symbol table
    Returns a string representation of value.
    return the value
    int
     
    parse value of data type out of String
    return the "external" String representation which starts with an underscore

    Methods inherited from class com.semedy.reasoner.api.symboltable.ExternalDataType

    createValue

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait