src/share/classes/com/sun/tools/javac/code/Symbol.java

changeset 1565
d04960f05593
parent 1564
aeadaf905d78
child 1607
bd49e0304281
equal deleted inserted replaced
1564:aeadaf905d78 1565:d04960f05593
215 215
216 public boolean isInterface() { 216 public boolean isInterface() {
217 return (flags() & INTERFACE) != 0; 217 return (flags() & INTERFACE) != 0;
218 } 218 }
219 219
220 public boolean isPrivate() {
221 return (flags_field & Flags.AccessFlags) == PRIVATE;
222 }
223
224 public boolean isEnum() {
225 return (flags() & ENUM) != 0;
226 }
227
220 /** Is this symbol declared (directly or indirectly) local 228 /** Is this symbol declared (directly or indirectly) local
221 * to a method or variable initializer? 229 * to a method or variable initializer?
222 * Also includes fields of inner classes which are in 230 * Also includes fields of inner classes which are in
223 * turn local to a method or variable initializer. 231 * turn local to a method or variable initializer.
224 */ 232 */
1079 */ 1087 */
1080 public static class MethodSymbol extends Symbol implements ExecutableElement { 1088 public static class MethodSymbol extends Symbol implements ExecutableElement {
1081 1089
1082 /** The code of the method. */ 1090 /** The code of the method. */
1083 public Code code = null; 1091 public Code code = null;
1092
1093 /** The extra (synthetic/mandated) parameters of the method. */
1094 public List<VarSymbol> extraParams = List.nil();
1084 1095
1085 /** The parameters of the method. */ 1096 /** The parameters of the method. */
1086 public List<VarSymbol> params = null; 1097 public List<VarSymbol> params = null;
1087 1098
1088 /** The names of the parameters */ 1099 /** The names of the parameters */

mercurial