java.lang.Object
ca.weblite.objc.mappers.StructureMapping
- All Implemented Interfaces:
TypeMapping
StructureMapping class.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncToJ(Object cVar, String signature, TypeMapping root) Converts a C variable to the corresponding Java variable given the context of the specified signature.jToC(Object jVar, String signature, TypeMapping root) Converts a Java variable to the corresponding Java variable given the context of the specified signature.
-
Field Details
-
INSTANCE
Singleton instance.
-
-
Method Details
-
cToJ
Description copied from interface:TypeMappingConverts a C variable to the corresponding Java variable given the context of the specified signature.- Specified by:
cToJin interfaceTypeMapping- 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
Description copied from interface:TypeMappingConverts a Java variable to the corresponding Java variable given the context of the specified signature.- Specified by:
jToCin interfaceTypeMapping- 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- aTypeMappingobject.- Returns:
- The converted C variable
-