Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
J
L
M
N
O
P
R
S
T
V
A
AbstractElementList
- Class in
de.projectory.koivima.core
A list of executable Elements that is itself an element.
AbstractElementList()
- Constructor for class de.projectory.koivima.core.
AbstractElementList
Creates a new code block, that can be executed in the specified ExecutionContext If this code block is not inserted into another code block for execution purpose, than setExecutionContext must be called.
add(Element)
- Method in class de.projectory.koivima.core.
AbstractElementList
Adds an element to the end of this list.
add(Element)
- Method in class de.projectory.koivima.core.
CodeBlock
Adds an element to the end of this code block.
add(Element)
- Method in class de.projectory.koivima.core.
ElementList
Adds an element to the end of this list.
Add
- Class in
de.projectory.koivima.operators
Adds two integer values.
Add()
- Constructor for class de.projectory.koivima.operators.
Add
addFirst(Element)
- Method in class de.projectory.koivima.core.
AbstractElementList
Adds an element to the beginning of this list.
addFirst(Element)
- Method in class de.projectory.koivima.core.
CodeBlock
Adds an element to the beginning of this list.
addFirst(Element)
- Method in class de.projectory.koivima.core.
ElementList
Adds an element to the beginning of this list.
AddingContext
- Class in
de.projectory.addingmachine
This is an example for an extended execution context.
AddingContext()
- Constructor for class de.projectory.addingmachine.
AddingContext
Creates a new AddingContext and adds some data to the memory cells.
AssemblerCompiler
- Class in
de.projectory.koivima.compiler.assembler
Compiles a piece of assembly code for the virtual machine.
AssemblerCompiler()
- Constructor for class de.projectory.koivima.compiler.assembler.
AssemblerCompiler
Creates a new compiler.
B
BranchOnCondition
- Class in
de.projectory.koivima.operators
Branches on condition.
BranchOnCondition()
- Constructor for class de.projectory.koivima.operators.
BranchOnCondition
buildToken(int)
- Method in class de.projectory.koivima.compiler.assembler.
Parser
Receives single characters and builds a token from them.
C
code
- Variable in class de.projectory.koivima.core.
AbstractElementList
A list that contains the elements
CodeBlock
- Class in
de.projectory.koivima.core
An executable piece of a program consisting of elements.
CodeBlock()
- Constructor for class de.projectory.koivima.core.
CodeBlock
codeBlock
- Variable in class de.projectory.koivima.core.
ExecutionContext
codePointer
- Variable in class de.projectory.koivima.core.
CodeBlock
pointer to the current element to execute
codePointerIsClean
- Variable in class de.projectory.koivima.core.
CodeBlock
set to false if the code pointer has been changed from the outside
compile(String, ExecutionContext)
- Method in class de.projectory.koivima.compiler.assembler.
AssemblerCompiler
Compiles a string into an executable code block
compileCodeBlock(Parser, ExecutionContext)
- Method in class de.projectory.koivima.compiler.assembler.
AssemblerCompiler
Reads tokens in assembly language from a parser until the end of a code block and compiles them to an executable codeblock.
compileList(AbstractElementList, Parser, ExecutionContext)
- Method in class de.projectory.koivima.compiler.assembler.
AssemblerCompiler
content
- Variable in class de.projectory.koivima.core.
DataElement
Some data that is encapsulated by this class.
context
- Variable in class de.projectory.koivima.core.
Element
provides the execution environment for this element
copy()
- Method in class de.projectory.addingmachine.
AddingContext
Returns a shallo copy of this execution context.
copy()
- Method in class de.projectory.koivima.core.
ExecutionContext
Returns a copy of this execution context.
Copy
- Class in
de.projectory.koivima.operators
Copies the last element of the stack.
Copy()
- Constructor for class de.projectory.koivima.operators.
Copy
cr
- Static variable in class de.projectory.koivima.compiler.assembler.
Parser
createListOfOperators()
- Method in class de.projectory.koivima.compiler.assembler.
AssemblerCompiler
Looks for class files in de/projectory/koivima/operators/ and creates an internal list of operators.
D
DataElement
- Class in
de.projectory.koivima.core
DataElement(Object)
- Constructor for class de.projectory.koivima.core.
DataElement
Creates a new DataElement holding some data.
dataElements
- Variable in class de.projectory.koivima.core.
DataStack
stack for the data
DataStack
- Class in
de.projectory.koivima.core
A simple data / result stack for this virtual machine
DataStack()
- Constructor for class de.projectory.koivima.core.
DataStack
dataStack
- Variable in class de.projectory.koivima.core.
ExecutionContext
de.projectory.addingmachine
- package de.projectory.addingmachine
Example of a customized virtual machine.
de.projectory.addingmachine.operators
- package de.projectory.addingmachine.operators
Operators for the example machine.
de.projectory.koivima.compiler.assembler
- package de.projectory.koivima.compiler.assembler
Assembler for KoiViMa.
de.projectory.koivima.core
- package de.projectory.koivima.core
KoiViMa core classes.
de.projectory.koivima.operators
- package de.projectory.koivima.operators
KoiViMa standard operators.
de.projectory.koivimatest
- package de.projectory.koivimatest
Test cases for the virtual machine.
Delete
- Class in
de.projectory.koivima.operators
Deletes the last element of the stack.
Delete()
- Constructor for class de.projectory.koivima.operators.
Delete
E
Element
- Class in
de.projectory.koivima.core
Element of a code block.
Element()
- Constructor for class de.projectory.koivima.core.
Element
ElementList
- Class in
de.projectory.koivima.core
A list of executable Elements that is itself an element.
ElementList()
- Constructor for class de.projectory.koivima.core.
ElementList
eofHasBeenReached
- Variable in class de.projectory.koivima.compiler.assembler.
Parser
has end of file been reached?
Equals
- Class in
de.projectory.koivima.operators
Compares to integer values.
Equals()
- Constructor for class de.projectory.koivima.operators.
Equals
evaluate()
- Method in class de.projectory.koivima.core.
CodeBlock
Evaluates this whole code block
Evaluate
- Class in
de.projectory.koivima.operators
Takes a code block from the stack and evaluate it.
Evaluate()
- Constructor for class de.projectory.koivima.operators.
Evaluate
evaluate(String)
- Method in class de.projectory.koivimatest.
Main
Compiles and interprets a String of assembly code.
evaluateFile(String)
- Method in class de.projectory.addingmachine.
Main
Compiles and interprets a piece of assembly code.
evaluateFile(String)
- Method in class de.projectory.koivimatest.
Main
Compiles and interprets a piece of assembly code.
execute()
- Method in class de.projectory.addingmachine.operators.
IncA
Increments the content of register A by one.
execute()
- Method in class de.projectory.addingmachine.operators.
MoveA
Moves the content of a memory cell into register A
execute()
- Method in class de.projectory.addingmachine.operators.
PrintA
Prints the content of register A onto the screen.
execute()
- Method in class de.projectory.addingmachine.operators.
PrintLine
Prints last stack element onto the screen.
execute()
- Method in class de.projectory.addingmachine.operators.
StoreA
Stores the content of register A into a memory cell.
execute()
- Method in class de.projectory.koivima.core.
AbstractElementList
Overwrite execute in element.
execute()
- Method in class de.projectory.koivima.core.
DataElement
Overwrite execute in element.
execute()
- Method in class de.projectory.koivima.core.
Element
Executes this element.
execute()
- Method in class de.projectory.koivima.operators.
Add
Adds two integers.
execute()
- Method in class de.projectory.koivima.operators.
BranchOnCondition
Takes to elements from the stack and perfoms a relative jump.
execute()
- Method in class de.projectory.koivima.operators.
Copy
Copies the last element of the stack.
execute()
- Method in class de.projectory.koivima.operators.
Delete
Deletes the last element of the stack.
execute()
- Method in class de.projectory.koivima.operators.
Equals
Compares to integers for equality.
execute()
- Method in class de.projectory.koivima.operators.
Evaluate
Evaluates a code block from the stack.
execute()
- Method in class de.projectory.koivima.operators.
ForEach
execute()
- Method in class de.projectory.koivima.operators.
GreaterThan
Compares to integers.
execute()
- Method in class de.projectory.koivima.operators.
Jump
Moves the code pointer.
execute()
- Method in class de.projectory.koivima.operators.
JumpOnCondition
Takes to elements from the stack and perfoms a relative jump.
execute()
- Method in class de.projectory.koivima.operators.
JumpOnNotCondition
Takes to elements from the stack and perfoms a relative jump.
execute()
- Method in class de.projectory.koivima.operators.
LessThan
Compares to integers.
execute()
- Method in class de.projectory.koivima.operators.
Nop
execute()
- Method in class de.projectory.koivima.operators.
Not
Moves the code pointer.
execute()
- Method in class de.projectory.koivima.operators.
Print
Prints last stack element onto the screen.
execute()
- Method in class de.projectory.koivima.operators.
PrintHello
Prints Hello World on the Screen.
execute()
- Method in class de.projectory.koivima.operators.
PrintLine
Prints last stack element onto the screen.
execute()
- Method in class de.projectory.koivima.operators.
Range
Creates a list of integer values
execute()
- Method in class de.projectory.koivima.operators.
Sub
Substracts one integer from another.
ExecutionContext
- Class in
de.projectory.koivima.core
Each block of code is run in an ExecutionContext.
ExecutionContext()
- Constructor for class de.projectory.koivima.core.
ExecutionContext
ExecutionContext(DataStack, CodeBlock)
- Constructor for class de.projectory.koivima.core.
ExecutionContext
Only used for internal purposes (making a copy of this object).
F
ForEach
- Class in
de.projectory.koivima.operators
Takes a list and a code block from the stack and evaluate the code for each list element.
ForEach()
- Constructor for class de.projectory.koivima.operators.
ForEach
G
getContent()
- Method in class de.projectory.koivima.core.
DataElement
Returns the actual data content of this element
getExecutionContext()
- Method in class de.projectory.koivima.core.
Element
getToken()
- Method in class de.projectory.koivima.compiler.assembler.
Parser
Returns the next token.
GreaterThan
- Class in
de.projectory.koivima.operators
Compares to integer values.
GreaterThan()
- Constructor for class de.projectory.koivima.operators.
GreaterThan
I
in
- Variable in class de.projectory.koivima.compiler.assembler.
Parser
The input stream to read from
IncA
- Class in
de.projectory.addingmachine.operators
Increments the content of register A by one.
IncA()
- Constructor for class de.projectory.addingmachine.operators.
IncA
isSeparator(char)
- Method in class de.projectory.koivima.compiler.assembler.
Parser
Checks wether the given character is a separator for a new token.
isToken(char)
- Method in class de.projectory.koivima.compiler.assembler.
Parser
Checks if given character is a token by itself.
iterator()
- Method in class de.projectory.koivima.core.
AbstractElementList
J
Jump
- Class in
de.projectory.koivima.operators
Performs a relative jump.
Jump()
- Constructor for class de.projectory.koivima.operators.
Jump
JumpOnCondition
- Class in
de.projectory.koivima.operators
Performs a relative jump on condition.
JumpOnCondition()
- Constructor for class de.projectory.koivima.operators.
JumpOnCondition
JumpOnNotCondition
- Class in
de.projectory.koivima.operators
Performs a relative jump if a condition is == 0.
JumpOnNotCondition()
- Constructor for class de.projectory.koivima.operators.
JumpOnNotCondition
L
LessThan
- Class in
de.projectory.koivima.operators
Compares to integer values.
LessThan()
- Constructor for class de.projectory.koivima.operators.
LessThan
lf
- Static variable in class de.projectory.koivima.compiler.assembler.
Parser
localContext
- Variable in class de.projectory.koivima.core.
CodeBlock
Execution context for the elements of this CodeBlock
M
Main
- Class in
de.projectory.addingmachine
Example for a machine that customizes KoiViMa.
Main()
- Constructor for class de.projectory.addingmachine.
Main
main(String[])
- Static method in class de.projectory.addingmachine.
Main
Starts a program that is able to read programs from file and execute them.
Main
- Class in
de.projectory.koivimatest
Some test code for the virtual machine.
Main()
- Constructor for class de.projectory.koivimatest.
Main
main(String[])
- Static method in class de.projectory.koivimatest.
Main
Starts a program that is able to read programs from file and execute them.
memory
- Variable in class de.projectory.addingmachine.
AddingContext
Main memory
memorySize
- Variable in class de.projectory.addingmachine.
AddingContext
Number of memory cells
mode
- Variable in class de.projectory.koivima.compiler.assembler.
Parser
Used by buildToken() to remember the state or parsing
MoveA
- Class in
de.projectory.addingmachine.operators
Moves the content of a memory cell into register A Stack: ... cellIndex => ...
MoveA()
- Constructor for class de.projectory.addingmachine.operators.
MoveA
moveCodePointer(int)
- Method in class de.projectory.koivima.core.
CodeBlock
Moves the code pointer.
N
Nop
- Class in
de.projectory.koivima.operators
Performs no operation.
Nop()
- Constructor for class de.projectory.koivima.operators.
Nop
Not
- Class in
de.projectory.koivima.operators
Changes 0 to 1 and values !
Not()
- Constructor for class de.projectory.koivima.operators.
Not
O
onError(String)
- Method in class de.projectory.koivima.core.
CodeBlock
Called if an error ocurs.
onError(String)
- Method in class de.projectory.koivima.core.
ExecutionContext
Called if an error occurs.
Operator
- Class in
de.projectory.koivima.core
Super class for all operators.
Operator()
- Constructor for class de.projectory.koivima.core.
Operator
operators
- Variable in class de.projectory.koivima.compiler.assembler.
AssemblerCompiler
names of available operators
P
packageName
- Variable in class de.projectory.koivima.compiler.assembler.
AssemblerCompiler
Name of the package containing the operators.
packagePath
- Variable in class de.projectory.koivima.compiler.assembler.
AssemblerCompiler
Path to the directory containing the operators
Parser
- Class in
de.projectory.koivima.compiler.assembler
Parses a piece of assembler code for tokens.
Parser(Reader)
- Constructor for class de.projectory.koivima.compiler.assembler.
Parser
Creates a parser that reads tokens from a given Reader.
Parser.ParseMode
- Enum in
de.projectory.koivima.compiler.assembler
state of parsing
Parser.ParseMode()
- Constructor for enum de.projectory.koivima.compiler.assembler.
Parser.ParseMode
pop()
- Method in class de.projectory.koivima.core.
DataStack
Removes an element from this stack
pop()
- Method in class de.projectory.koivima.core.
Operator
Removes an Element from the top of the stack.
popDataElement()
- Method in class de.projectory.koivima.core.
Operator
Fetches a DataElement from the stack and checks for type safety.
popInteger()
- Method in class de.projectory.koivima.core.
Operator
Fetches an Integer from the stack and checks for type safety.
popString()
- Method in class de.projectory.koivima.core.
Operator
Fetches a String from the stack and checks for type safety.
Print
- Class in
de.projectory.koivima.operators
Prints the content of the last stack element onto the screen.
Print()
- Constructor for class de.projectory.koivima.operators.
Print
PrintA
- Class in
de.projectory.addingmachine.operators
Prints the content of register A onto the screen and performs a line break.
PrintA()
- Constructor for class de.projectory.addingmachine.operators.
PrintA
PrintHello
- Class in
de.projectory.koivima.operators
An operator that prints Hello World to the screen.
PrintHello()
- Constructor for class de.projectory.koivima.operators.
PrintHello
PrintLine
- Class in
de.projectory.addingmachine.operators
Prints the content of the last stack element onto the screen and performs a line break.
PrintLine()
- Constructor for class de.projectory.addingmachine.operators.
PrintLine
PrintLine
- Class in
de.projectory.koivima.operators
Prints the content of the last stack element onto the screen and performs a line break.
PrintLine()
- Constructor for class de.projectory.koivima.operators.
PrintLine
push(Element)
- Method in class de.projectory.koivima.core.
DataStack
Puts an Element onto this stack.
push(Element)
- Method in class de.projectory.koivima.core.
Operator
Puts an Element onto the stack and provides it with the right ExecutionContext.
R
Range
- Class in
de.projectory.koivima.operators
Creates a list of integer values.
Range()
- Constructor for class de.projectory.koivima.operators.
Range
registerA
- Variable in class de.projectory.addingmachine.
AddingContext
Register to perform calculations
removeFirst()
- Method in class de.projectory.koivima.core.
CodeBlock
Removes the first element of executable code.
runTestCases()
- Method in class de.projectory.koivimatest.
Main
Evaluates a set of given test cases.
S
setExecutionContext(ExecutionContext)
- Method in class de.projectory.koivima.core.
AbstractElementList
Overwrites setExecutionContext of Element
setExecutionContext(ExecutionContext)
- Method in class de.projectory.koivima.core.
CodeBlock
Overwrites setExecutionContext of AbstractElementList
setExecutionContext(ExecutionContext)
- Method in class de.projectory.koivima.core.
Element
Sets the ExecutionContext of this element.
setOperatorsPath(String)
- Method in class de.projectory.koivima.compiler.assembler.
AssemblerCompiler
Sets the path to a new set of operators.
space
- Static variable in class de.projectory.koivima.compiler.assembler.
Parser
StoreA
- Class in
de.projectory.addingmachine.operators
Stores the content of register A into a memory cell.
StoreA()
- Constructor for class de.projectory.addingmachine.operators.
StoreA
Sub
- Class in
de.projectory.koivima.operators
Substracts one integer from another Stack: ... a b => ... c c = a - b
Sub()
- Constructor for class de.projectory.koivima.operators.
Sub
T
tab
- Static variable in class de.projectory.koivima.compiler.assembler.
Parser
testCasePrintString()
- Method in class de.projectory.koivimatest.
Main
Builds a program out of objects and prints Hello World
tokenBuilder
- Variable in class de.projectory.koivima.compiler.assembler.
Parser
used by buildToken() to build a new token
tokenToElement(String, Parser, ExecutionContext)
- Method in class de.projectory.koivima.compiler.assembler.
AssemblerCompiler
Converts a token to an executable element of the virtual machine.
toString()
- Method in class de.projectory.koivima.core.
CodeBlock
Returns a String representation of this code block.
toString()
- Method in class de.projectory.koivima.core.
DataElement
Returns a String representation of this DataElement.
toString()
- Method in class de.projectory.koivima.core.
Operator
Returns a String representation of this Operator.
V
valueOf(String)
- Static method in enum de.projectory.koivima.compiler.assembler.
Parser.ParseMode
Returns the enum constant of this type with the specified name.
values()
- Static method in enum de.projectory.koivima.compiler.assembler.
Parser.ParseMode
Returns an array containing the constants of this enum type, in the order they're declared.
A
B
C
D
E
F
G
I
J
L
M
N
O
P
R
S
T
V
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes