|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.squawk.pragma.PragmaException
public class PragmaException
The root of the pragma exception hierarchy. These exceptions are all dummy exceptions that are never actually thrown. Methods declare them to be thrown as a way of indicating various properties.
Field Summary | |
---|---|
static int |
ALLOW_INLINED
Bit flag for methods that have relaxed inlinning by the translator. |
static int |
FORCE_INLINED
|
static int |
FORCE_INLINED_A
Bit flag for methods that are forceably inlined by the translator. |
static int |
HOSTED
Bit flag for hosted methods. |
static int |
INTERPRETER_INVOKED
Bit flag for methods that should only be invoked from the interpreter. |
static int |
NATIVE
Bit flag for methods that are made into native methods by the translator. |
static int |
NOT_INLINED
Bit flag for methods that are never inlined by the translator. |
static int |
REPLACEMENT_CONSTRUCTOR
Bit flag for replacement constructors. |
Constructor Summary | |
---|---|
PragmaException()
|
Method Summary | |
---|---|
static boolean |
isAllowInlined(int pragmaFlags)
Given a bit mask, tells whether the method must be inlined by the translator. |
static boolean |
isForceInlined(int pragmaFlags)
Given a bit mask, tells whether the method must be inlined by the translator. |
static boolean |
isHosted(int pragmaFlags)
Given a bit mask, tells whether the method is run only in a hosted environment. |
static boolean |
isInterpreterInvoked(int pragmaFlags)
Given a bit mask, tells whether the method is to be invoked only from the interpreter or JIT compiled code. |
static boolean |
isNative(int pragmaFlags)
Given a bit mask, tells whether the method will be turned into a native method by the translator. |
static boolean |
isNotInlined(int pragmaFlags)
Given a bit mask, tells whether the method is never inlined by the translator. |
static boolean |
isReplacementConstructor(int pragmaFlags)
Given a bit mask, tells whether a method has its body replace a constructor with the same signature. |
static int |
toModifier(String className)
Converts the name of a pragma class to a corresponding bit constant. |
Methods inherited from class java.lang.Throwable |
---|
getMessage, printStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int HOSTED
HostedPragma
,
Constant Field Valuespublic static final int REPLACEMENT_CONSTRUCTOR
ReplacementConstructorPragma
,
Constant Field Valuespublic static final int INTERPRETER_INVOKED
InterpreterInvokedPragma
,
Constant Field Valuespublic static final int NATIVE
NativePragma
,
Constant Field Valuespublic static final int ALLOW_INLINED
AllowInlinedPragma
,
Constant Field Valuespublic static final int NOT_INLINED
NotInlinedPragma
,
Constant Field Valuespublic static final int FORCE_INLINED_A
ForceInlinedPragma
,
Constant Field Valuespublic static final int FORCE_INLINED
Constructor Detail |
---|
public PragmaException()
Method Detail |
---|
public static boolean isHosted(int pragmaFlags)
public static boolean isReplacementConstructor(int pragmaFlags)
public static boolean isInterpreterInvoked(int pragmaFlags)
public static boolean isNative(int pragmaFlags)
public static boolean isForceInlined(int pragmaFlags)
public static boolean isAllowInlined(int pragmaFlags)
public static boolean isNotInlined(int pragmaFlags)
public static int toModifier(String className)
className
- the name of one of the hard-wired pragma exception classes
className
or 0 if
className
does not denote a pragma
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |