Class CheckOr

  • All Implemented Interfaces:
    java.io.Serializable, Check

    public class CheckOr
    extends java.lang.Object
    implements Check, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CheckOr​(Check left, Check right)
      Constructs a check object, call by the sleep engine.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean check​(ScriptEnvironment env)
      Performs this "check".
      void setInfo​(int _hint)  
      java.lang.String toString()
      Returns a string representation of this object
      java.lang.String toString​(java.lang.String prefix)
      Converts this object to a string, used by the sleep engine for constructing an AST like thing
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CheckOr

        public CheckOr​(Check left,
                       Check right)
        Constructs a check object, call by the sleep engine.
    • Method Detail

      • toString

        public java.lang.String toString​(java.lang.String prefix)
        Converts this object to a string, used by the sleep engine for constructing an AST like thing
        Specified by:
        toString in interface Check
      • toString

        public java.lang.String toString()
        Returns a string representation of this object
        Overrides:
        toString in class java.lang.Object
      • check

        public boolean check​(ScriptEnvironment env)
        Performs this "check". Returns the value of the condition that is checked.
        Specified by:
        check in interface Check
      • setInfo

        public void setInfo​(int _hint)
        Specified by:
        setInfo in interface Check