ca.weblite.objc.mappers
Class StructureMapping

java.lang.Object
  extended by ca.weblite.objc.mappers.StructureMapping
All Implemented Interfaces:
TypeMapping

public class StructureMapping
extends Object
implements TypeMapping

Author:
shannah

Constructor Summary
StructureMapping()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructureMapping

public StructureMapping()
Method Detail

cToJ

public Object cToJ(Object cVar,
                   String signature,
                   TypeMapping root)
Description copied from interface: TypeMapping
Converts a C variable to the corresponding Java variable given the context of the specified signature.

Specified by:
cToJ in interface TypeMapping
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

public Object jToC(Object jVar,
                   String signature,
                   TypeMapping root)
Description copied from interface: TypeMapping
Converts a Java variable to the corresponding Java variable given the context of the specified signature.

Specified by:
jToC in interface TypeMapping
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.
Returns:
The converted C variable


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