Class GrammarReader.BackwardReferenceMap

  • Enclosing class:
    GrammarReader

    public class GrammarReader.BackwardReferenceMap
    extends java.lang.Object
    memorizes what declarations are referenced from where. this information is used to report the source of errors.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map impl  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.xml.sax.Locator[] getReferer​(java.lang.Object target)
      gets all the refer who have a reference to this object.
      void memorizeLink​(java.lang.Object target)
      memorize a reference to an object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • impl

        private final java.util.Map impl
    • Constructor Detail

      • BackwardReferenceMap

        public BackwardReferenceMap()
    • Method Detail

      • memorizeLink

        public void memorizeLink​(java.lang.Object target)
        memorize a reference to an object.
      • getReferer

        public org.xml.sax.Locator[] getReferer​(java.lang.Object target)
        gets all the refer who have a reference to this object.
        Returns:
        null if no one refers it.