Class Code

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    CodeWithScope, CodeWScope

    public class Code
    extends java.lang.Object
    implements java.io.Serializable
    For using the Code type.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Code​(java.lang.String code)
      Construct a new instance with the given code.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getCode()
      Get the Javascript code.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Code

        public Code​(java.lang.String code)
        Construct a new instance with the given code.
        Parameters:
        code - the Javascript code
    • Method Detail

      • getCode

        public java.lang.String getCode()
        Get the Javascript code.
        Returns:
        the code
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object