Package com.sun.codemodel
Class JFormatter.ReferenceList
java.lang.Object
com.sun.codemodel.JFormatter.ReferenceList
- Enclosing class:
JFormatter
Used during the optimization of class imports.
List of
JClass
es whose short name is the same.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
collisions
(JDefinedClass enclosingClass) Returns true if the symbol represented by the short name is "importable".boolean
isId()
Return true iff this is strictly an id, meaning that there are no collisions with type names.void
setId
(boolean value)
-
Field Details
-
classes
-
id
private boolean idtrue if this name is used as an identifier (like a variable name.)
-
-
Constructor Details
-
ReferenceList
ReferenceList()
-
-
Method Details
-
collisions
Returns true if the symbol represented by the short name is "importable". -
add
-
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.
-