|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.vm.TraceableMachine
org.millscript.millscript.vm.BasicMachine
org.millscript.millscript.vm.Machine
public final class Machine
This class implements the MillScript machine.
| Field Summary |
|---|
| Fields inherited from class org.millscript.millscript.vm.BasicMachine |
|---|
piggyBank, valueStack |
| Fields inherited from class org.millscript.millscript.vm.TraceableMachine |
|---|
doingIndex |
| Constructor Summary | |
|---|---|
Machine(Configuration c)
Constructs a new machine with the specified configuration. |
|
| Method Summary | |
|---|---|
org.millscript.commons.alert.Alert |
decorate(org.millscript.commons.alert.Alert alert)
|
Configuration |
getConfig()
Returns this machines configuration. |
Binding |
popBinding()
Pops a regular expression Binding off the stack and returns it. |
java.lang.Boolean |
popBoolean()
Pops a Boolean off the stack and returns it. |
java.util.Calendar |
popCalendar()
Pops a Calendar off the stack and returns it. |
java.lang.Character |
popCharacter()
Pops a Character off the stack and returns it. |
DatabaseSource |
popDatabaseSource()
Pops a DatabaseSource off the stack and returns it. |
Fragment |
popFragment()
Pops a Fragment off the stack and returns it. |
Function |
popFunction()
Pops a Function off the stack and returns it. |
org.millscript.commons.util.IList |
popIList()
Pops a List off the stack and returns it. |
Image |
popImage()
Pops an Image off the stack and returns it. |
org.millscript.commons.util.IMap |
popIMap()
Pops a Map off the stack and returns it. |
int |
popInt()
Pops an int off the stack and returns it. |
java.lang.Integer |
popInteger()
Pops an Integer off the stack and returns it. |
java.lang.Object[] |
popObjectArray()
Pops an object array off the stack and returns it. |
java.util.regex.Pattern |
popPattern()
Pops a traditional regular expression Pattern off the stack and returns it. |
SpiceClass |
popSpiceClass()
Pops a Spice Class off the stack and returns it. |
SpiceObject |
popSpiceObject()
Pops a Spice Object off the stack and returns it. |
java.lang.String |
popString()
Pops a String off the stack and returns it. |
Page |
popURL()
Pops a URL off the stack and returns it. |
XmlComment |
popXmlComment()
Pops an XmlComment off the stack and returns it. |
XmlElement |
popXmlElement()
Pops an XmlElement off the stack and returns it. |
void |
printResults(boolean interactive)
Clears the value stack, optionally printing all the objects left on it. |
| Methods inherited from class org.millscript.millscript.vm.BasicMachine |
|---|
getCount, getIndex, peekObject, pokeObject, popArgsArray, popArgsIntoArray, popArgsIterator, popArgsList, popObject, pushArgsArray, pushArgsIterator, pushArgsList, pushArgsMapIterator, pushBoolean, pushObject, reset, restoreSaved, saveRef, setCount, startSaving |
| Methods inherited from class org.millscript.millscript.vm.TraceableMachine |
|---|
doingList, enterFunction, enterUpdater, exitFunction, exitUpdater |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Machine(Configuration c)
c - the configuration for this machine| Method Detail |
|---|
public org.millscript.commons.alert.Alert decorate(org.millscript.commons.alert.Alert alert)
decorate in interface org.millscript.commons.alert.AlertDecoratorAlertDecorator.decorate(org.millscript.commons.alert.Alert)public Configuration getConfig()
public Binding popBinding()
AlertException - if the stack item cannot be cast to a Bindingpublic java.lang.Boolean popBoolean()
AlertException - if the stack item cannot be cast to a Booleanpublic java.util.Calendar popCalendar()
Calendar from the top of the stack
AlertException - if the stack item cannot be cast to a Calendarpublic java.lang.Character popCharacter()
Character from the top of the stack
AlertException - if the stack item cannot be cast to a Characterpublic DatabaseSource popDatabaseSource()
DatabaseSource from the top of the stack
AlertException - if the stack item cannot be cast to a
DatabaseSourcepublic Fragment popFragment()
Fragment from the top of the stack
AlertException - if the stack item cannot be cast to a Fragmentpublic Function popFunction()
Function from the top of the stack
AlertException - if the stack item cannot be cast to a Functionpublic org.millscript.commons.util.IList popIList()
IList from the top of the stack
AlertException - if the stack item cannot be cast to a Listpublic Image popImage()
Image from the top of the stack
AlertException - if the stack item cannot be cast to an Imagepublic org.millscript.commons.util.IMap popIMap()
IMap from the top of the stack
AlertException - if the stack item cannot be cast to a
MapWithDefaultpublic int popInt()
AlertException - if the stack item cannot be cast to an integerpublic java.lang.Integer popInteger()
Integer from the top of the stack
AlertException - if the stack item cannot be cast to an Integerpublic java.lang.Object[] popObjectArray()
AlertException - if the stack item cannot be cast to an object
arraypublic java.util.regex.Pattern popPattern()
AlertException - if the stack item cannot be cast to a Patternpublic SpiceClass popSpiceClass()
SpiceClass from
the top of the stack
AlertException - if the stack item cannot be cast to a
SpiceClasspublic SpiceObject popSpiceObject()
SpiceObject from
the top of the stack
AlertException - if the stack item cannot be cast to a
SpiceObjectpublic java.lang.String popString()
String from the top of the stack
AlertException - if the stack item cannot be cast to a Stringpublic Page popURL()
Page from the
top of the stack
AlertException - if the stack item cannot be cast to a URLpublic XmlComment popXmlComment()
XmlComment from the top of the stack
AlertException - if the stack item cannot be cast to an
XmlCommentpublic XmlElement popXmlElement()
XmlElement from the top of the stack
AlertException - if the stack item cannot be cast to an
XmlElementpublic void printResults(boolean interactive)
interactive - a boolean indicating if we are in an interactive
mode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||