|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrvl.swv.LaTeXSyntax
public class LaTeXSyntax
Implements LaTeX-style syntax for LaTeXFile
.
In this syntax, code chunks are enclosed in an environment named
langcode,
expressions are of the form \langexpr{expr},
and language-specific options are of the form \langweaveOpts{opts}
Constructor Summary | |
---|---|
LaTeXSyntax()
Default constructor. |
|
LaTeXSyntax(FileInterface fi)
Alternative constructor |
Method Summary | |
---|---|
java.util.Vector<java.lang.String> |
getArgs()
Return the vector of arguments in latest code reference |
java.lang.String |
getDetails()
Return details of last result of testInline(). |
java.lang.String |
getLastMatch()
Return exact string that was matched by most recent tag search |
java.lang.String |
getOptionList()
Return the option list for the code chunk just detected. |
boolean |
isChunkEnd(java.lang.String line)
Return whether or not the current line ends a code chunk |
void |
setFileInterface(FileInterface filei)
Set the FileInterface associated with this instance. |
java.lang.String |
testChunk(java.lang.String line)
Test a line of the source file. |
java.lang.String |
testCoderef(java.lang.String line)
Test a line of code. |
Tag |
testInline(java.lang.String line)
Test the line for an occurrence of an expression or a recall, and return the appropriate tag. |
java.lang.String |
testOpts(java.lang.String line)
Test a source line to see if it is a global or language-specific option specification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LaTeXSyntax()
public LaTeXSyntax(FileInterface fi)
Method Detail |
---|
public void setFileInterface(FileInterface filei)
setFileInterface
in interface SyntaxInterface
public java.lang.String testChunk(java.lang.String line)
testChunk
in interface SyntaxInterface
public java.lang.String getOptionList()
getOptionList
in interface SyntaxInterface
public boolean isChunkEnd(java.lang.String line)
isChunkEnd
in interface SyntaxInterface
public java.lang.String testOpts(java.lang.String line)
testOpts
in interface SyntaxInterface
public java.lang.String testCoderef(java.lang.String line)
testCoderef
in interface SyntaxInterface
public java.util.Vector<java.lang.String> getArgs()
getArgs
in interface SyntaxInterface
public Tag testInline(java.lang.String line)
testInline
in interface SyntaxInterface
public java.lang.String getDetails()
getDetails
in interface SyntaxInterface
public java.lang.String getLastMatch()
getLastMatch
in interface SyntaxInterface
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |