Class ModelMapper

java.lang.Object
org.jfuncmachine.sexprlang.translate.ModelMapper
All Implemented Interfaces:
SexprMapper

public class ModelMapper extends Object implements SexprMapper
An S-expression mapper that maps S-expression to model classes that are annotated with the @ModelItem annotation.
  • Field Details

    • packageName

      public final String packageName
      The package containing the model to be mapped
  • Constructor Details

    • ModelMapper

      public ModelMapper(String packageName) throws MappingException
      Create a model mapper for a particular package (including sub-packages)
      Parameters:
      packageName - The package containing the classes to map S-expressions to
      Throws:
      MappingException - If there is an error performing the mapping
  • Method Details