1 package org.apache.commons.attributes; 2 3 18 public class Target { 19 20 23 public static final int CLASS = 1; 24 25 28 public static final int FIELD = 2; 29 30 33 public static final int METHOD = 4; 34 35 38 public static final int CONSTRUCTOR = 8; 39 40 43 public static final int METHOD_PARAMETER = 16; 44 45 48 public static final int CONSTRUCTOR_PARAMETER = 32; 49 50 53 public static final int RETURN = 64; 54 55 59 public static final int PARAMETER = METHOD_PARAMETER | CONSTRUCTOR_PARAMETER; 60 61 64 public static final int ALL = CLASS | FIELD | METHOD | CONSTRUCTOR | PARAMETER | RETURN; 65 66 private final int flags; 67 68 73 public Target (int flags) { 74 this.flags = flags; 75 } 76 77 80 public int getFlags () { 81 return flags; 82 } 83 84 } | Popular Tags |