Enum Class RTokenType

java.lang.Object
java.lang.Enum<RTokenType>
de.jplag.rlang.RTokenType
All Implemented Interfaces:
TokenType, Serializable, Comparable<RTokenType>, Constable

public enum RTokenType extends Enum<RTokenType> implements TokenType
Tokens in R that are deemed important when comparing submissions for plagiarisms. Based on an R module for JPlag v2.15 by Olmo Kramer, see their JPlag fork.
  • Enum Constant Details

    • BEGIN_FUNCTION

      public static final RTokenType BEGIN_FUNCTION
    • END_FUNCTION

      public static final RTokenType END_FUNCTION
    • FUNCTION_CALL

      public static final RTokenType FUNCTION_CALL
    • NUMBER

      public static final RTokenType NUMBER
    • STRING

      public static final RTokenType STRING
    • BOOL

      public static final RTokenType BOOL
    • ASSIGN

      public static final RTokenType ASSIGN
    • ASSIGN_FUNC

      public static final RTokenType ASSIGN_FUNC
    • ASSIGN_LIST

      public static final RTokenType ASSIGN_LIST
    • HELP

      public static final RTokenType HELP
    • INDEX

      public static final RTokenType INDEX
    • PACKAGE

      public static final RTokenType PACKAGE
    • IF_BEGIN

      public static final RTokenType IF_BEGIN
    • IF_END

      public static final RTokenType IF_END
    • FOR_BEGIN

      public static final RTokenType FOR_BEGIN
    • FOR_END

      public static final RTokenType FOR_END
    • WHILE_BEGIN

      public static final RTokenType WHILE_BEGIN
    • WHILE_END

      public static final RTokenType WHILE_END
    • REPEAT_BEGIN

      public static final RTokenType REPEAT_BEGIN
    • REPEAT_END

      public static final RTokenType REPEAT_END
    • NEXT

      public static final RTokenType NEXT
    • BREAK

      public static final RTokenType BREAK
    • COMPOUND_BEGIN

      public static final RTokenType COMPOUND_BEGIN
    • COMPOUND_END

      public static final RTokenType COMPOUND_END
  • Method Details

    • values

      public static RTokenType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RTokenType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface TokenType