ca.weblite.objc
Interface TypeMapping

All Known Implementing Classes:
NSObjectMapping, PointerMapping, ScalarMapping, StringMapping, StructureMapping, TypeMapper

public interface TypeMapping

Interface to be implemented by objects that map Java types to Objective-C types.

Author:
shannah

Method Summary
 Object cToJ(Object cVar, String signature, TypeMapping root)
          Converts a C variable to the corresponding Java variable given the context of the specified signature.
 Object jToC(Object jVar, String signature, TypeMapping root)
          Converts a Java variable to the corresponding Java variable given the context of the specified signature.
 

Method Detail

cToJ

Object cToJ(Object cVar,
            String signature,
            TypeMapping root)
Converts a C variable to the corresponding Java variable given the context of the specified signature.

Parameters:
cVar - The C variable to be converted.
signature - The signature that tells what type of variable we are dealing with according to Objective-C Type Encoding conventions.
root - The root TypeMapping object
Returns:
The converted Java object.

jToC

Object jToC(Object jVar,
            String signature,
            TypeMapping root)
Converts a Java variable to the corresponding Java variable given the context of the specified signature.

Parameters:
jVar - The Java variable to be converted.
signature - The signature that tells what type of variable we are dealing with according to Objective-C Type Encoding conventions.
root -
Returns:
The converted C variable


Copyright © 2012–2014 Web Lite Solutions Corp.. All rights reserved.