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.ObjectUsed during the optimization of class imports. List ofJClasses 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 voidadd(JClass clazz)booleancollisions(JDefinedClass enclosingClass)Returns true if the symbol represented by the short name is "importable".java.util.List<JClass>getClasses()booleanisId()Return true iff this is strictly an id, meaning that there are no collisions with type names.voidsetId(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.
-
-