com.github.croesch.micro_debug.i18n
Enum Text

java.lang.Object
  extended by java.lang.Enum<Text>
      extended by com.github.croesch.micro_debug.i18n.Text
All Implemented Interfaces:
Serializable, Comparable<Text>

public enum Text
extends Enum<Text>

This class provides access to the internationalized text resources.

Since:
Date: Dec 2, 2011
Author:
croesch

Enum Constant Summary
ARGUMENT_WITH_WRONG_PARAM_NUMBER
          the text to describe that the argument has the wrong number of parameters
BORDER
          the text to visualize a border
BREAKPOINT_MACRO
          the text to print the breakpoint for a specific line in macro code
BREAKPOINT_MICRO
          the text to print the breakpoint for a specific line in micro code
BREAKPOINT_REGISTER
          the text to print the breakpoint for a specific register
ERROR
          the text to format an error line output
EXECUTED_CODE
          the text to print the executed code
FILE_NOT_FOUND
          describes that the specific file couldn't be found
GREETING
          the text that is printed when the program is started, before any error message
INPUT_DEBUGGER
          the text that should be printed before user input is requested from debugger
INPUT_MIC1
          the text that should be printed before user input is requested from the mic1-processor
INVALID_MEM_ADDR
          describes an invalid memory address
INVALID_NUMBER
          describes an invalid number
INVALID_REGISTER
          describes an invalid register
LOCAL_VARIABLE_VALUE
          the text to print the value of a local variable
MACRO_CODE_LINE
          the text to print a single line of macro code
MEMORY_CONTENT
          the text to print the content of the memory
MICRO_CODE_LINE
          the text to print a single line of micro code
MISSING_IJVM_FILE
          the text to describe that the argument for the ijvm-file is missing
MISSING_MIC1_FILE
          the text to describe that the argument for the mic1-file is missing
REGISTER_VALUE
          the text to print the value of a register
STACK_CONTENT
          the text to print an entry of the stack
STACK_EMPTY
          the text to display the user an empty stack
TICKS
          the text to view how many ticks have been executed by the processor
TRY_HELP
          the text to give a hint to the user that he should try to read the help
UNKNOWN_ARGUMENT
          the text to describe an unknown argument
UNKNOWN_IJVM_INSTRUCTION
          the text that describes an unknown ijvm instruction
UNKNOWN_INSTRUCTION
          describes an unknown instruction
VERSION
          the text for the version of the program.
WELCOME
          the text that is printed, when the program is starting.
WRONG_FORMAT_IJVM
          describes that the ijvm-file has a wrong file format
WRONG_FORMAT_MIC1
          describes that the mic1-file has a wrong file format
WRONG_PARAM_NUMBER
          the text to describe that there where to few parameters
 
Method Summary
 String text()
          String representation of this object
 String text(Object... s)
          String representation of this object, but {x} will be replaced by argument number x starting to count from 0.
 String toString()
           
static Text valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Text[] 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

VERSION

public static final Text VERSION
the text for the version of the program.


BORDER

public static final Text BORDER
the text to visualize a border


GREETING

public static final Text GREETING
the text that is printed when the program is started, before any error message


WELCOME

public static final Text WELCOME
the text that is printed, when the program is starting. Only if no error occured


INPUT_DEBUGGER

public static final Text INPUT_DEBUGGER
the text that should be printed before user input is requested from debugger


INPUT_MIC1

public static final Text INPUT_MIC1
the text that should be printed before user input is requested from the mic1-processor


TICKS

public static final Text TICKS
the text to view how many ticks have been executed by the processor


REGISTER_VALUE

public static final Text REGISTER_VALUE
the text to print the value of a register


LOCAL_VARIABLE_VALUE

public static final Text LOCAL_VARIABLE_VALUE
the text to print the value of a local variable


EXECUTED_CODE

public static final Text EXECUTED_CODE
the text to print the executed code


MEMORY_CONTENT

public static final Text MEMORY_CONTENT
the text to print the content of the memory


STACK_CONTENT

public static final Text STACK_CONTENT
the text to print an entry of the stack


STACK_EMPTY

public static final Text STACK_EMPTY
the text to display the user an empty stack


MACRO_CODE_LINE

public static final Text MACRO_CODE_LINE
the text to print a single line of macro code


MICRO_CODE_LINE

public static final Text MICRO_CODE_LINE
the text to print a single line of micro code


BREAKPOINT_REGISTER

public static final Text BREAKPOINT_REGISTER
the text to print the breakpoint for a specific register


BREAKPOINT_MACRO

public static final Text BREAKPOINT_MACRO
the text to print the breakpoint for a specific line in macro code


BREAKPOINT_MICRO

public static final Text BREAKPOINT_MICRO
the text to print the breakpoint for a specific line in micro code


UNKNOWN_IJVM_INSTRUCTION

public static final Text UNKNOWN_IJVM_INSTRUCTION
the text that describes an unknown ijvm instruction


ERROR

public static final Text ERROR
the text to format an error line output


INVALID_MEM_ADDR

public static final Text INVALID_MEM_ADDR
describes an invalid memory address


INVALID_NUMBER

public static final Text INVALID_NUMBER
describes an invalid number


INVALID_REGISTER

public static final Text INVALID_REGISTER
describes an invalid register


UNKNOWN_INSTRUCTION

public static final Text UNKNOWN_INSTRUCTION
describes an unknown instruction


UNKNOWN_ARGUMENT

public static final Text UNKNOWN_ARGUMENT
the text to describe an unknown argument


ARGUMENT_WITH_WRONG_PARAM_NUMBER

public static final Text ARGUMENT_WITH_WRONG_PARAM_NUMBER
the text to describe that the argument has the wrong number of parameters


WRONG_PARAM_NUMBER

public static final Text WRONG_PARAM_NUMBER
the text to describe that there where to few parameters


MISSING_IJVM_FILE

public static final Text MISSING_IJVM_FILE
the text to describe that the argument for the ijvm-file is missing


MISSING_MIC1_FILE

public static final Text MISSING_MIC1_FILE
the text to describe that the argument for the mic1-file is missing


WRONG_FORMAT_MIC1

public static final Text WRONG_FORMAT_MIC1
describes that the mic1-file has a wrong file format


WRONG_FORMAT_IJVM

public static final Text WRONG_FORMAT_IJVM
describes that the ijvm-file has a wrong file format


FILE_NOT_FOUND

public static final Text FILE_NOT_FOUND
describes that the specific file couldn't be found


TRY_HELP

public static final Text TRY_HELP
the text to give a hint to the user that he should try to read the help

Method Detail

values

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

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

valueOf

public static Text 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

toString

public String toString()
Overrides:
toString in class Enum<Text>

text

public String text()
String representation of this object

Returns:
the String that represents the object
Since:
Date: Dec 2, 2011

text

public String text(Object... s)
String representation of this object, but {x} will be replaced by argument number x starting to count from 0.

Parameters:
s - the replacements
Returns:
the String that represents the object with replaced placeholders
Since:
Date: Dec 2, 2011


Copyright © 2012. All Rights Reserved.