Class StringL

  • All Implemented Interfaces:
    java.io.Serializable

    public class StringL
    extends ASTree
    String literal.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String text  
    • Constructor Summary

      Constructors 
      Constructor Description
      StringL​(java.lang.String t)  
    • Field Detail

      • text

        protected java.lang.String text
    • Constructor Detail

      • StringL

        public StringL​(java.lang.String t)
    • Method Detail

      • get

        public java.lang.String get()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class ASTree
      • accept

        public void accept​(Visitor v)
                    throws CompileError
        Description copied from class: ASTree
        Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.
        Specified by:
        accept in class ASTree
        Throws:
        CompileError