net.sf.drawj2d.cmd
Class AssertCmd
- java.lang.Object
-
- net.sf.drawj2d.cmd.AssertCmd
-
- All Implemented Interfaces:
- Command
public class AssertCmd extends java.lang.Object implements Command
AssertCmdimplements the "assert" command, which verifies that an assertion is fulfilled. Actually a mathematical expression is evaluated. If it returns not 1 (== true), an exception is raised. assert "$h > 200" InputCheck
-
-
Constructor Summary
Constructors Constructor and Description AssertCmd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ThingcmdCode(Interp interp, Thing[] argv)ThecmdCodemethod takes an interpreter and an array of Things, performs some calculations, and returns aThingrepresenting the computed value, ornull.
-
-
-
Method Detail
-
cmdCode
public Thing cmdCode(Interp interp, Thing[] argv) throws HeclException
Description copied from interface:CommandThecmdCodemethod takes an interpreter and an array of Things, performs some calculations, and returns aThingrepresenting the computed value, ornull.- Specified by:
cmdCodein interfaceCommand- Parameters:
interp- anInterpvalueargv- aThing[]value- Returns:
- A
Thingrepresenting the computed value, ornull. - Throws:
HeclException- if an error occurs
-
-
DataMelt 3.0 © DataMelt by jWork.ORG