Class JFormatter.ReferenceList

java.lang.Object
com.sun.codemodel.JFormatter.ReferenceList
Enclosing class:
JFormatter

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

    • classes

      private final ArrayList<JClass> classes
    • id

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

    • ReferenceList

      ReferenceList()
  • Method Details

    • 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 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.