Class Mark
java.lang.Object
org.apache.jasper.compiler.Mark
Mark represents a point in the JSP input.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classKeep track of parser before parsing an included file. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) String(package private) intprivate JspCompilationContext(package private) int(package private) String(package private) int(package private) String(package private) Stack<Mark.IncludeState> (package private) intprivate JspReader(package private) char[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetFile()intgetURL()Gets the URL of the resource with which this Mark is associatedboolean/* Restores this mark's state to a previously stored stream.voidpushStream(char[] inStream, int inFileid, String name, String inBaseDir, String inEncoding) Sets this mark's state to a new stream.toString()
-
Field Details
-
cursor
int cursor -
line
int line -
col
int col -
fileid
int fileid -
fileName
String fileName -
baseDir
String baseDir -
stream
char[] stream -
includeStack
Stack<Mark.IncludeState> includeStack -
encoding
String encoding -
reader
-
ctxt
-
-
Constructor Details
-
Mark
Mark(JspReader reader, char[] inStream, int fileid, String name, String inBaseDir, String inEncoding) Constructor- Parameters:
reader- JspReader this mark belongs toinStream- current stream for this markfileid- id of requested jsp filename- JSP file nameinBaseDir- base directory of requested jsp fileinEncoding- 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 markinFileid- id of new file from which stream comes frominBaseDir- directory of fileinEncoding- encoding of new file
-
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
-
getPublicId
-
toString
-
getFile
-
getURL
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
-
equals
-
isGreater
- Returns:
- true if this Mark is greather than the
otherMark, false otherwise.
-