public class SXPage
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
SXPage.AddEllipses
Where lines have been omitted, insert ellipses.
|
protected static class |
SXPage.AssignColorClasses
Make any line whose whatFor is non-null have the associated class name
Requires: ParseLines
|
protected static class |
SXPage.BePage
Wraps lines in a <table>
|
protected static class |
SXPage.BeProgram
Creates an executable program from the goals lines.
|
protected static class |
SXPage.BeTable
Wraps lines in a <table>
|
protected static class |
SXPage.ComputeSectBodies
Compute body for Section lines in program code.
|
protected static class |
SXPage.ComputeTailComments
Make any line whose whatFor is colored have a pointer to the Highlight object
Requires: ParseLinetour" value="FontViewer-tour"
s
|
class |
SXPage.Criteria
Class responsible for retaining all information about line acceptability.
|
static class |
SXPage.Hue |
protected static class |
SXPage.MarkComments
Find lines that are comments, either those beginning with //
or those in comment blocks: / * .
|
static class |
SXPage.OutForm
distinguish output formats
|
protected static class |
SXPage.PickLines
Mark as SKIP those lines that are not
goals by their tags and the criteria in page.crit
|
protected static class |
SXPage.PruneSects
Change type to SKIP for SECT entries not followed by goals lines
Requires: ParseLines, PickLines
We keep a stack of SECT entries.
|
protected static class |
SXPage.RemoveUnneededLines
Remove lines that are not needed for output.
|
protected static class |
SXPage.SetLineSects
Assign to each PgLine.sect the SectLine for its enclosing section.
|
static class |
SXPage.Wrapper
A Wrapper is invoked to embellish the text of an SXPage.
|
class |
SXPage.Writer |
Modifier and Type | Field and Description |
---|---|
boolean |
ellipsesOn |
boolean |
executableOn |
boolean |
linenumOn |
protected static int |
MAX_SECTION_DEPTH |
static java.lang.String |
NL |
boolean |
sectionsOn |
boolean |
whatForOn |
Constructor and Description |
---|
SXPage(SourceExplorer main,
SXData original) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ampLify(java.lang.String s)
Convert html characters to character entities:
& < > " convert to & < > "
|
static java.lang.String[] |
getOptions() |
static java.lang.String[] |
getOutForms() |
java.lang.String |
parseGoals(java.util.ArrayList<java.lang.String> argl) |
java.lang.String |
parseGoals(java.lang.String s) |
java.lang.String |
parseOptions(java.util.ArrayList<java.lang.String> argl) |
public static final java.lang.String NL
protected static final int MAX_SECTION_DEPTH
public boolean executableOn
public boolean sectionsOn
public boolean ellipsesOn
public boolean linenumOn
public boolean whatForOn
public SXPage(SourceExplorer main, SXData original)
public static java.lang.String[] getOutForms()
public static java.lang.String[] getOptions()
public static java.lang.String ampLify(java.lang.String s)
s
- The string to write as a row to the outputpublic java.lang.String parseGoals(java.lang.String s)
public java.lang.String parseGoals(java.util.ArrayList<java.lang.String> argl)
public java.lang.String parseOptions(java.util.ArrayList<java.lang.String> argl)