Class MapTable


  • public class MapTable
    extends java.lang.Object
    • Field Detail

      • count

        public int count
      • hasMaps

        public boolean hasMaps
      • hasOverlays

        public boolean hasOverlays
      • hasHavemaps

        public boolean hasHavemaps
      • hasAndmaps

        public boolean hasAndmaps
      • emptyReason

        public java.lang.String emptyReason
      • joinError

        public boolean joinError
      • caseMode

        public int caseMode
    • Constructor Detail

      • MapTable

        public MapTable()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • joinError

        public boolean joinError()
      • hasOverlays

        public boolean hasOverlays()
      • hasHavemaps

        public boolean hasHavemaps()
      • hasAndmaps

        public boolean hasAndmaps()
      • clear

        public void clear()
      • setCaseSensitivity

        public void setCaseSensitivity​(int mode)
      • reverse

        public void reverse()
      • insert

        public void insert​(MapTable table,
                           boolean fwd,
                           boolean rev)
      • insert

        public void insert​(java.lang.String lhs,
                           java.lang.String rhs,
                           MapFlag mapFlag)
      • insert

        public void insert​(java.lang.String lhs,
                           int slot,
                           java.lang.String rhs,
                           MapFlag mapFlag)
      • insertNoDups

        public void insertNoDups​(java.lang.String lhs,
                                 java.lang.String rhs,
                                 MapFlag mapFlag)
      • remove

        public void remove​(int slotNum)
      • validate

        public void validate​(java.lang.String lhs,
                             java.lang.String rhs)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • validHalf

        public void validHalf​(MapTableT dir)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • dump

        public void dump​(java.lang.StringBuffer buf,
                         java.lang.String trace,
                         int fmt)
      • dumpTree

        public void dumpTree​(java.lang.StringBuffer buf,
                             MapTableT dir,
                             java.lang.String trace)
      • isSingle

        public boolean isSingle()
      • sort

        public java.util.ArrayList<MapItem> sort​(MapTableT direction,
                                                 boolean streamFlag)
      • translate

        public MapWrap translate​(MapTableT dir,
                                 java.lang.String from)
      • match

        public boolean match​(MapHalf l,
                             java.lang.String rhs)
      • match

        public boolean match​(java.lang.String lhs,
                             java.lang.String rhs)
      • validDepotMap

        public boolean validDepotMap​(java.lang.String map)
      • get

        public MapItem get​(int n)
      • getSlot

        public int getSlot​(MapItem m)
      • translate

        public java.lang.String translate​(MapItem m,
                                          MapTableT dir,
                                          java.lang.String from)
      • countByFlag

        public int countByFlag​(MapFlag mapFlag)
      • insertByPattern

        public void insertByPattern​(java.lang.String lhs,
                                    java.lang.String rhs,
                                    MapFlag mapFlag)
      • disambiguate

        public void disambiguate()
        MapTable::Disambiguate() - handle un/ambiguous mappings

        Mappings provided by the user (client views, branch views) can be ambiguous since later mappings can override earlier ones. Disambiguate() adds explicit exclusion (-) mappings for any ambiguous mappings, so that Join() and Translate() don't have to worry about them.

        For example:

        a/... b/... a/c b/d

        becomes

        a/... b/... -a/c -b/c -a/d -b/d a/c b/d

        Unmaps are handled similarly, but the high precedence unmap line itself is not added, because everything that can be unmapped has been done so by joining it against the lower precedence mapping lines:

        a/... b/... -a/c b/d

        becomes

        a/... b/... -a/c -b/c -a/d -b/d

      • joinCheck

        public boolean joinCheck​(MapTableT dir,
                                 java.lang.String lhs)
      • joinOptimizer

        public void joinOptimizer​(MapTableT dir2)