Class VariableMapper

java.lang.Object
software.coley.sourcesolver.mapping.VariableMapper
All Implemented Interfaces:
Mapper<VariableModel,VariableTree>

public class VariableMapper extends Object implements Mapper<VariableModel,VariableTree>
  • Constructor Details

    • VariableMapper

      public VariableMapper()
  • Method Details

    • map

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