org.netbeans.modules.java.source 0.104.0 23

org.netbeans.api.java.source
Class CodeStyle.ImportGroups

java.lang.Object
  extended by 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
 

Method Detail

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 name
isStatic - is the import static
Returns:
the group number
Since:
0.86

org.netbeans.modules.java.source 0.104.0 23

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.