net.nicoulaj.maven.plugins.soot
Enum SootMojo.ThrowAnalysis
java.lang.Object
java.lang.Enum<SootMojo.ThrowAnalysis>
net.nicoulaj.maven.plugins.soot.SootMojo.ThrowAnalysis
- All Implemented Interfaces:
- Serializable, Comparable<SootMojo.ThrowAnalysis>
- Enclosing class:
- SootMojo
public static enum SootMojo.ThrowAnalysis
- extends Enum<SootMojo.ThrowAnalysis>
Values for SootMojo.throwAnalysis
option.
Enum Constant Summary |
PEDANTIC
Pedantically conservative throw analysis. |
UNIT
Unit Throw Analysis. |
Field Summary |
protected int |
value
|
PEDANTIC
public static final SootMojo.ThrowAnalysis PEDANTIC
- Pedantically conservative throw analysis.
Says that any instruction may throw any
Throwable
whatsoever. Strictly speaking this is correct,
since the Java libraries include the Thread.stop(Throwable)
method, which allows other threads
to cause arbitrary exceptions to occur at arbitrary points in the execution of a victim thread.
UNIT
public static final SootMojo.ThrowAnalysis UNIT
- Unit Throw Analysis.
Says that each statement in the intermediate representation may throw those exception types associated with
the corresponding Java bytecode instructions in the JVM Specification. The analysis deals with each statement
in isolation, without regard to the surrounding program.
value
protected int value
values
public static SootMojo.ThrowAnalysis[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SootMojo.ThrowAnalysis c : SootMojo.ThrowAnalysis.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SootMojo.ThrowAnalysis valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getValue
public int getValue()
Copyright © 2012-2013. All Rights Reserved.