EMPrimitive

Objective-C

@protocol EMPrimitive <NSObject>

Swift

protocol EMPrimitive : NSObjectProtocol

A protocol representing a DS primitive.

  • tag

    Returns the tag for this primitive, the value is unsigned and ranges from 0x0000 to 0xFFFF. see EMPrimitiveTags in EMPrimitiveTags.h

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger tag;

    Swift

    var tag: Int { get }

    Return Value

    The tag value of this primitive.

  • Returns the type of the primitive, see EMPrimitiveType.

    Declaration

    Objective-C

    @property (nonatomic, readonly) EMPrimitiveType primitiveType;

    Swift

    var primitiveType: EMPrimitiveType { get }

    Return Value

    The type of this primitive.

  • Returns a textual description of this primitive, this is mainly intended for debug purposes.

    Declaration

    Objective-C

    - (NSString *)description;

    Swift

    func description() -> String!

    Return Value

    The textual description.