org.netbeans.api.java.source
Class CodeStyle.ImportGroups
java.lang.Object
org.netbeans.api.java.source.CodeStyle.ImportGroups
- Enclosing class:
- CodeStyle
public static final class CodeStyle.ImportGroups
- extends Object
Provides an information about the desired grouping of import statements,
including group order.
- Since:
- 0.86
|
Method Summary |
int |
getGroupId(String name,
boolean isStatic)
Returns the group number of the imported element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getGroupId
public int getGroupId(String name,
boolean isStatic)
- Returns the group number of the imported element. Imports with the same
number form a group. Groups with lower numbers should be positioned
higher in the import statement list. Imports within a group should
be sorted alphabetically.
- Parameters:
name - the imported element's package nameisStatic - is the import static
- Returns:
- the group number
- Since:
- 0.86