Class MethodBodyMapper

java.lang.Object
software.coley.sourcesolver.mapping.MethodBodyMapper
All Implemented Interfaces:
Mapper<MethodBodyModel,BlockTree>

public class MethodBodyMapper extends Object implements Mapper<MethodBodyModel,BlockTree>
  • Constructor Details

    • MethodBodyMapper

      public MethodBodyMapper()
  • Method Details

    • map

      @Nonnull public MethodBodyModel map(@Nonnull MappingContext context, @Nonnull com.sun.tools.javac.tree.EndPosTable table, @Nonnull BlockTree tree)
      Description copied from interface: Mapper
      Maps the given tree into our own model format.
      Specified by:
      map in interface Mapper<MethodBodyModel,BlockTree>
      Parameters:
      context - Mapping context to do additional work within.
      table - Table to lookup tree positions within.
      tree - Tree to map.
      Returns:
      Model representation of the tree.