Package com.sun.codemodel
Class JFormatter.ReferenceList
- java.lang.Object
-
- com.sun.codemodel.JFormatter.ReferenceList
-
- Enclosing class:
- JFormatter
final class JFormatter.ReferenceList extends java.lang.Object
Used during the optimization of class imports. List ofJClass
es whose short name is the same.
-
-
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)
-
-
-
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.)
-
-
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.
-
-