|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjcaas.script_nodes.AnnotationFunctions
public class AnnotationFunctions
This class defines several functions which can be called in an annotation script.
| Constructor Summary | |
|---|---|
AnnotationFunctions()
|
|
| Method Summary | |
|---|---|
static void |
annotateLoops()
|
static NumericValue |
countInstructions(java.lang.String instruction)
Gets the number of occurances a the named instruction in the current match. |
static NumericValue |
pow(NumericValue x,
NumericValue n)
Given an integer x and integer n returns a new integer, x^n. |
static void |
print(java.lang.Object s)
Prints a given string to the standard out. |
static void |
update(java.lang.String v,
NumericValue value)
Geiven a variable name, updates that variable in on the BlackBoard to have the given value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationFunctions()
| Method Detail |
|---|
public static void print(java.lang.Object s)
c - the context of the annotation script.s - the string to print.public static NumericValue countInstructions(java.lang.String instruction)
c - the context of the annotation script.instruction - the instruction to find occurances of.
public static NumericValue pow(NumericValue x,
NumericValue n)
c - the context of the script.x - the base.n - the power.
public static void annotateLoops()
public static void update(java.lang.String v,
NumericValue value)
c - the context.v - the name of the variable in the BlackBoard.value - the value to assign the variable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||