org.eclipse.jgit.api
Enum RebaseCommand.Action

java.lang.Object
  extended by java.lang.Enum<RebaseCommand.Action>
      extended by org.eclipse.jgit.api.RebaseCommand.Action
All Implemented Interfaces:
Serializable, Comparable<RebaseCommand.Action>
Enclosing class:
RebaseCommand

public static enum RebaseCommand.Action
extends Enum<RebaseCommand.Action>

Describes rebase actions


Enum Constant Summary
EDIT
          Use commit, but stop for amending
PICK
          Use commit
REWORD
          Use commit, but edit the commit message
 
Method Summary
 String toString()
           
 String toToken()
           
static RebaseCommand.Action valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RebaseCommand.Action[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PICK

public static final RebaseCommand.Action PICK
Use commit


REWORD

public static final RebaseCommand.Action REWORD
Use commit, but edit the commit message


EDIT

public static final RebaseCommand.Action EDIT
Use commit, but stop for amending

Method Detail

values

public static RebaseCommand.Action[] 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 (RebaseCommand.Action c : RebaseCommand.Action.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RebaseCommand.Action 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

toToken

public String toToken()
Returns:
full action token name

toString

public String toString()
Overrides:
toString in class Enum<RebaseCommand.Action>


Copyright © 2013. All Rights Reserved.