1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package net
.multiphasicapps
.classfile
;
12 import cc
.squirreljme
.runtime
.cldc
.debug
.Debugging
;
15 * These are flags which are used by methods.
19 public enum MethodFlag
25 /** Private method. */
28 /** Protected method. */
37 /** Synchronized method. */
43 /** Variable argument method. */
49 /** Abstract method. */
52 /** Strict floating point method. */
55 /** Synthetic method. */
62 * Returns the bit mask which is used for this flag.
64 * @return The bit mask used for the flag.
68 public final int javaBitMask()
72 case PUBLIC
: return 0x0001;
73 case PRIVATE
: return 0x0002;
74 case PROTECTED
: return 0x0004;
75 case STATIC
: return 0x0008;
76 case FINAL
: return 0x0010;
77 case SYNCHRONIZED
: return 0x0020;
78 case BRIDGE
: return 0x0040;
79 case VARARGS
: return 0x0080;
80 case NATIVE
: return 0x0100;
81 case ABSTRACT
: return 0x0400;
82 case STRICT
: return 0x0800;
83 case SYNTHETIC
: return 0x1000;
86 throw Debugging
.oops();