Class ImportMapper

java.lang.Object
software.coley.sourcesolver.mapping.ImportMapper
All Implemented Interfaces:
Mapper<ImportModel,ImportTree>

public class ImportMapper extends Object implements Mapper<ImportModel,ImportTree>
  • Constructor Details

    • ImportMapper

      public ImportMapper()
  • Method Details

    • map

      @Nonnull public ImportModel map(@Nonnull MappingContext context, @Nonnull com.sun.tools.javac.tree.EndPosTable table, @Nonnull ImportTree tree)
      Description copied from interface: Mapper
      Maps the given tree into our own model format.
      Specified by:
      map in interface Mapper<ImportModel,ImportTree>
      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.