1 19 20 package org.netbeans.modules.java.ui.nodes.elements; 21 22 import java.lang.reflect.Modifier ; 23 24 28 35 public class ClassElementFilter extends SourceElementFilter { 36 38 39 public static final int CONSTRUCTOR = ENUM << 1; 40 41 public static final int FIELD = CONSTRUCTOR << 1; 42 43 public static final int METHOD = FIELD << 1; 44 45 public static final int EXTENDS = METHOD << 1; 46 49 public static final int IMPLEMENTS = EXTENDS << 1; 50 51 public static final int ALL = SourceElementFilter.ALL | CONSTRUCTOR | FIELD | METHOD | 52 EXTENDS | IMPLEMENTS; 53 54 58 public static final int[] DEFAULT_ORDER = {FIELD | CONSTRUCTOR | METHOD | CLASS | INTERFACE | ANNOTATION_TYPE | ENUM}; 59 60 62 public static final int STATIC = Modifier.STATIC; 63 64 65 private boolean sorted = true; 66 67 71 public boolean isSorted () { 72 return sorted; 73 } 74 75 78 public void setSorted (boolean sorted) { 79 this.sorted = sorted; 80 } 81 } 82 | Popular Tags |