net.nicoulaj.maven.plugins.soot
Enum SootMojo.SourcePrecedence

java.lang.Object
  extended by java.lang.Enum<SootMojo.SourcePrecedence>
      extended by net.nicoulaj.maven.plugins.soot.SootMojo.SourcePrecedence
All Implemented Interfaces:
Serializable, Comparable<SootMojo.SourcePrecedence>
Enclosing class:
SootMojo

public static enum SootMojo.SourcePrecedence
extends Enum<SootMojo.SourcePrecedence>

Values for SootMojo.sourcePrecedence option.


Enum Constant Summary
CLASS
          Favour class files as Soot source.
JAVA
          Favour Java files as Soot source.
JIMPLE
          Favour Jimple files as Soot source.
ONLY_CLASS
          Use only class files as Soot source.
 
Field Summary
protected  int value
           
 
Method Summary
 int getValue()
           
static SootMojo.SourcePrecedence valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SootMojo.SourcePrecedence[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLASS

public static final SootMojo.SourcePrecedence CLASS
Favour class files as Soot source.

Try to resolve classes first from .class files found in the Soot classpath. Fall back to .jimple files only when unable to find a .class file.


ONLY_CLASS

public static final SootMojo.SourcePrecedence ONLY_CLASS
Use only class files as Soot source.

Try to resolve classes first from .class files found in the Soot classpath. Do not try any other types of files even when unable to find a .class file.


JIMPLE

public static final SootMojo.SourcePrecedence JIMPLE
Favour Jimple files as Soot source.

Try to resolve classes first from .jimple files found in the Soot classpath. Fall back to .class files only when unable to find a .jimple file.


JAVA

public static final SootMojo.SourcePrecedence JAVA
Favour Java files as Soot source.

Try to resolve classes first from .java files found in the Soot classpath. Fall back to .class files only when unable to find a .java file.

Field Detail

value

protected int value
Method Detail

values

public static SootMojo.SourcePrecedence[] 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.SourcePrecedence c : SootMojo.SourcePrecedence.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.SourcePrecedence 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.