Class JFormatter.ReferenceList

  • Enclosing class:
    JFormatter

    final class JFormatter.ReferenceList
    extends java.lang.Object
    Used during the optimization of class imports. List of JClasses whose short name is the same.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.ArrayList<JClass> classes  
      private boolean id
      true if this name is used as an identifier (like a variable name.)
    • Constructor Summary

      Constructors 
      Constructor Description
      ReferenceList()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(JClass clazz)  
      boolean collisions​(JDefinedClass enclosingClass)
      Returns true if the symbol represented by the short name is "importable".
      java.util.List<JClass> getClasses()  
      boolean isId()
      Return true iff this is strictly an id, meaning that there are no collisions with type names.
      void setId​(boolean value)  
      • Methods inherited from class java.lang.Object

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

      • classes

        private final java.util.ArrayList<JClass> classes
      • id

        private boolean id
        true if this name is used as an identifier (like a variable name.)
    • Constructor Detail

      • ReferenceList

        ReferenceList()
    • Method Detail

      • collisions

        public boolean collisions​(JDefinedClass enclosingClass)
        Returns true if the symbol represented by the short name is "importable".
      • add

        public void add​(JClass clazz)
      • getClasses

        public java.util.List<JClass> getClasses()
      • setId

        public void setId​(boolean value)
      • isId

        public boolean isId()
        Return true iff this is strictly an id, meaning that there are no collisions with type names.