Class Mapper<S>

java.lang.Object
org.jctools.channels.mapping.Mapper<S>

public class Mapper<S> extends Object
  • Field Details

    • debugEnabled

      private final boolean debugEnabled
    • inspector

      private final TypeInspector inspector
    • structInterface

      private final Class<S> structInterface
    • compiler

      private final SimpleCompiler compiler
  • Constructor Details

    • Mapper

      public Mapper(Class<S> structInterface, boolean debugEnabled)
  • Method Details

    • getSizeInBytes

      public int getSizeInBytes()
      Returns:
      the size that each message takes up in bytes
    • newFlyweight

      public <I> I newFlyweight(Class<I> implementationParent, String templateFileName, Object... args)
    • newFlyweight

      public <I> I newFlyweight(Class<I> implementationParent, String templateFileName, Template template, Object... args)
    • debugLogSource

      private void debugLogSource(String source)
    • instantiateImplementation

      private <I> I instantiateImplementation(Class<?>[] constructorParameterTypes, String name, CompilationResult result, Object[] args)
    • checkCompileFailures

      private void checkCompileFailures(String templateFile, CompilationResult result)
    • getTypes

      private Class<?>[] getTypes(Object... args)