Class Mark

java.lang.Object
org.apache.jasper.compiler.Mark

final class Mark extends Object
Mark represents a point in the JSP input.
  • Field Details

  • Constructor Details

    • Mark

      Mark(JspReader reader, char[] inStream, int fileid, String name, String inBaseDir, String inEncoding)
      Constructor
      Parameters:
      reader - JspReader this mark belongs to
      inStream - current stream for this mark
      fileid - id of requested jsp file
      name - JSP file name
      inBaseDir - base directory of requested jsp file
      inEncoding - encoding of current file
    • Mark

      Mark(Mark other)
      Constructor
    • Mark

      Mark(JspCompilationContext ctxt, String filename, int line, int col)
      Constructor
  • Method Details

    • pushStream

      public void pushStream(char[] inStream, int inFileid, String name, String inBaseDir, String inEncoding)
      Sets this mark's state to a new stream. It will store the current stream in it's includeStack.
      Parameters:
      inStream - new stream for mark
      inFileid - id of new file from which stream comes from
      inBaseDir - directory of file
      inEncoding - encoding of new file
    • popStream

      public Mark popStream()
      /* Restores this mark's state to a previously stored stream.
      Returns:
      null if there is no previous stream The previous Makr instance when the stream is pushed.
    • getLineNumber

      public int getLineNumber()
    • getColumnNumber

      public int getColumnNumber()
    • getSystemId

      public String getSystemId()
    • getPublicId

      public String getPublicId()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFile

      public String getFile()
    • getURL

      public URL getURL() throws MalformedURLException
      Gets the URL of the resource with which this Mark is associated
      Returns:
      URL of the resource with which this Mark is associated
      Throws:
      MalformedURLException - if the resource pathname is incorrect
    • toShortString

      public String toShortString()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • isGreater

      public boolean isGreater(Mark other)
      Returns:
      true if this Mark is greather than the other Mark, false otherwise.