|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvn.Sweeper
public class Sweeper
This class defines the action to take upon encountering each element
in a VerbNet XML file. The name Sweeper has no particular significance
other than to be memorable enough to be associated with this important task.
The Inspector
class, after it has processed all command-line
arguments, will begin reading in the requested XML files one-by-one. After
loading and parsing each one, a recursive process is begun that executes
the methods in this class. The appropriate method is called based solely
upon the tag name of the element being processed by use of reflection. The
methods Inspector.processNode(Node)
or
Inspector.processNodeByPairs(Node, ArrayList)
recursively
traverse the XML nodes and call upon Inspector.executeHTMLMethod(String, Node)
to execute the appropriate method in this class.
This class has multiple responsibilities. They include:
EventManager
class is as easy to use as possible for
researchers. A researcher should never have to modify this code, but it
is provided openly so that doing so is available if necessary.
startNODE
and endNODE
where NODE
is the tag name of the new element. They will be invoked when
the driver class (Inspector
) begins and ends processing the node,
respectively. Just the act of inserting these methods, in the same manner as
the already-existing methods, makes them active since reflection is used.
startNODE
or endNODE
method and modfiy how the attributes
are used to construct the simple-text representation of the element. All attributes
are stored into local String objects at the very beginning of each of the methods
(using the Element.getAttribute(String)
method). Read the
specific documentation of each method below carefully to avoid invalid modifications.
static void startNODE( Node n ) { // 1. Grab all attributes from the element (Node n). // 2. Construct local output string (simple-text representation) for this element. // 3. Initialize global event string to local output string or append local output // string to global event string. // 4. If the proper view options are supplied for this element, display the // local output string. // 5. If applicable, fire appropriate event(s) }The Inspector is ready for use right out of the box. There is very little to configure. However, these notes (all of which shown on
Inspector
,
Sweeper
, and EventManager
classes) provide some more
logistical details about the software.
%Agent
). Look at the UVI's key or
the Inspector's key (-k option on command line) for more information.
javac
1.4.2. The reason for this was so
researchers did not need to download and run Java 1.5 for this software. This software
will however work with Java 1.5. If you do not have Java installed on your system,
download the most recent release
right here.
Also, here are links to the 1.4.2 documentation
and the 1.5.0 documentation.
Nested Class Summary | |
---|---|
private static class |
Sweeper.MemberNode
Holds all crucial information about a member when it is encountered so it can be properly displayed in later processing. |
Field Summary | |
---|---|
private static String |
curClass
The name of the current class or subclass being processed. |
private static String |
curFile
The name of the current XML file being processed. |
private static int |
curIndentLevel
Represents how many levels of indentation should be printed when output is printed to stdout. |
private static ArrayList |
curVFFrameList
All the frames visited so far since the main (root) class. |
private static Node |
curVFFrameNode
The XML FRAME node corresponding to the current verb-frame pair (used only when the Inspector is running in verb-frame pair mode). |
(package private) static int |
curVFFrameNum
When the Inspector is running in verb-frame pair mode, this integer represents the frame number in the recursion chain. |
private static Node |
curVFMemberNode
The XML MEMBER node corresponding to the current verb-frame pair (used only when the Inspector is running in verb-frame pair mode). |
private static String |
curVFVerbName
The verb corresponding to the current verb-frame pair (used only when the Inspector is running in verb-frame pair mode). |
private static String |
curVFVerbWN
The WordNet sense corresponding to the current verb-frame pair (used only when the Inspector is running in verb-frame pair mode). |
private static String |
evText
The string which is given to EventManager.fireEvent(int, int, String, String, String, Element, Element)
when events are fired. |
private static String |
evTextLocal
The string which contains the characters that each sweeper method will output locally. |
private static Stack |
evTexts
A stack of strings which holds the global event string for various elements which was created for their 'start' events until their 'end' events come around. |
private static boolean |
hasBeenOther
Used by various types of nodes for which there might be a list to display to know if another of their same kind has already been shown, so as to print the appropriate separator. |
private static int |
INDENT_WIDTH
The number of spaces for a single indentation width. |
private static String |
indentSpaces
A string consisting of INDENT_WIDTH spaces. |
private static ArrayList |
members
Holds all the member information for a given class or subclass. |
private static boolean |
npSelRestrs
Whether or not the SELRESTRS about to be entered is under an NP node (as compared to a PREP or THEMROLE node). |
private static boolean |
prepSelRestrs
Whether or not the SELRESTRS about to be entered is under a PREP node (as compared to a THEMROLE or NP node). |
private static Stack |
replicateLabels
A stack of strings which holds the labels for all printed elements that have caused additional nesting (file, class, subclass, and frame). |
private static int |
restrsLevel
The level of nested SELRESTRS being processed. |
private static boolean |
trSelRestrs
Whether or not the SELRESTRS about to be entered is under a THEMROLE node (as compared to a PREP or NP node). |
private static boolean |
usingOr
Whether or not nodes which specify logical operators for their children are using 'or'. |
Constructor Summary | |
---|---|
private |
Sweeper()
This constructor is private because the class is not intended to ever be instantiated. |
Method Summary | |
---|---|
private static void |
classHierarchyPrint(Element cls,
int level)
Prints name of the class element provided and the names of all subclass elements contained within, joint with the number of members and frames for each. |
(package private) static void |
endADJ(Node n)
Prints the text that corresponds to the closing of the ADJ element in the VerbNet XML files. |
(package private) static void |
endADV(Node n)
Prints the text that corresponds to the closing of the ADV element in the VerbNet XML files. |
(package private) static void |
endARG(Node n)
Prints the text that corresponds to the closing of the ARG element in the VerbNet XML files. |
(package private) static void |
endARGS(Node n)
Prints the text that corresponds to the closing of the ARGS element in the VerbNet XML files. |
(package private) static void |
endDESCRIPTION(Node n)
Prints the text that corresponds to the closing of the DESCRIPTION element in the VerbNet XML files. |
(package private) static void |
endEXAMPLE(Node n)
Prints the text that corresponds to the closing of the EXAMPLE element in the VerbNet XML files. |
(package private) static void |
endEXAMPLES(Node n)
Prints the text that corresponds to the closing of the EXAMPLES element in the VerbNet XML files. |
(package private) static void |
endFRAME(Node n)
Prints the text that corresponds to the closing of the FRAME element in the VerbNet XML files. |
(package private) static void |
endFRAMES(Node n)
Prints the text that corresponds to the closing of the FRAMES element in the VerbNet XML files. |
(package private) static void |
endLEX(Node n)
Prints the text that corresponds to the closing of the LEX element in the VerbNet XML files. |
(package private) static void |
endMEMBER(Node n)
Prints the text that corresponds to the closing of the MEMBER element in the VerbNet XML files. |
(package private) static void |
endMEMBERS(Node n)
Prints the text that corresponds to the closing of the MEMBERS element in the VerbNet XML files. |
(package private) static void |
endNP(Node n)
Prints the text that corresponds to the closing of the NP element in the VerbNet XML files. |
(package private) static void |
endPRED(Node n)
Prints the text that corresponds to the closing of the PRED element in the VerbNet XML files. |
(package private) static void |
endPREP(Node n)
Prints the text that corresponds to the closing of the PREP element in the VerbNet XML files. |
(package private) static void |
endSELRESTR(Node n)
Prints the text that corresponds to the closing of the SELRESTR element in the VerbNet XML files. |
(package private) static void |
endSELRESTRS(Node n)
Prints the text that corresponds to the closing of the SELRESTRS element in the VerbNet XML files. |
(package private) static void |
endSEMANTICS(Node n)
Prints the text that corresponds to the closing of the SEMANTICS element in the VerbNet XML files. |
(package private) static void |
endSYNRESTR(Node n)
Prints the text that corresponds to the closing of the SYNRESTR element in the VerbNet XML files. |
(package private) static void |
endSYNRESTRS(Node n)
Prints the text that corresponds to the closing of the SYNRESTRS element in the VerbNet XML files. |
(package private) static void |
endSYNTAX(Node n)
Prints the text that corresponds to the closing of the SYNTAX element in the VerbNet XML files. |
(package private) static void |
endTHEMROLE(Node n)
Prints the text that corresponds to the closing of the THEMROLE element in the VerbNet XML files. |
(package private) static void |
endTHEMROLES(Node n)
Prints the text that corresponds to the closing of the THEMROLES element in the VerbNet XML files. |
(package private) static void |
endVERB(Node n)
Prints the text that corresponds to the closing of the VERB element in the VerbNet XML files. |
(package private) static void |
endVNCLASS(Node n)
Prints the text that corresponds to the closing of the VNCLASS element in the VerbNet XML files. |
(package private) static void |
endVNSUBCLASS(Node n)
Prints the text that corresponds to the closing of the VNSUBCLASS element in the VerbNet XML files. |
private static boolean |
hasKids(Node n,
String which)
Whether or not the given XML element has children with a given tag name. |
private static void |
iprint(String s)
Does the exact same thing as print(String) if the indentation
flag (-i) was not supplied on the command line (and thus
Inspector.flIndent is false ). |
private static void |
iprintln(String s)
Does the exact same thing as println(String) if the indentation
flag (-i) was not supplied on the command line (and thus
Inspector.flIndent is false ). |
private static int |
numKids(Node n,
String which)
Counts the number of children of a given XML element who have the given tag name. |
private static void |
popText()
Removes a string from the global event string stack and places it into the class-level global event string. |
private static void |
popTextForReplicate()
Removes the most recently stored label text for replication. |
private static void |
print(String s)
Used as shorthand for System.out.print . |
private static void |
println(String s)
Used as shorthand for System.out.println . |
private static void |
printMembers()
Prints the text for all the members in this class. |
private static void |
printVerbFramePairs()
Prints all verb-frame pairs if the Inspector is running in verb-frame pair mode. |
private static void |
pushText()
Saves the class-level global event string to a stack of event strings. |
private static void |
pushTextForReplicate(String text)
Saves the text for a label to be replicated for all elements contained within it. |
private static void |
replicateLabels()
Prints all the labels currently stored for replication. |
(package private) static void |
setCurFile(String newFileName)
Sets the current file being processed. |
(package private) static void |
setFrameList(ArrayList newFrameList)
Sets a class-level reference to a list containing all the frames visited so far since the main (root) class. |
(package private) static void |
startADJ(Node n)
Prints the text that corresponds to the beginning of the ADJ element in the VerbNet XML files. |
(package private) static void |
startADV(Node n)
Prints the text that corresponds to the beginning of the ADV element in the VerbNet XML files. |
(package private) static void |
startARG(Node n)
Prints the text that corresponds to the beginning of the ARG element in the VerbNet XML files. |
(package private) static void |
startARGS(Node n)
Prints the text that corresponds to the beginning of the ARG element in the VerbNet XML files. |
(package private) static void |
startDESCRIPTION(Node n)
Prints the text that corresponds to the beginning of the DESCRIPTION element in the VerbNet XML files. |
(package private) static void |
startEXAMPLE(Node n)
Prints the text that corresponds to the beginning of the EXAMPLE element in the VerbNet XML files. |
(package private) static void |
startEXAMPLES(Node n)
Prints the text that corresponds to the beginning of the EXAMPLES element in the VerbNet XML files. |
(package private) static void |
startFRAME(Node n)
Prints the text that corresponds to the beginning of the FRAME element in the VerbNet XML files. |
(package private) static void |
startFRAMES(Node n)
Prints the text that corresponds to the beginning of the FRAMES element in the VerbNet XML files. |
(package private) static void |
startLEX(Node n)
Prints the text that corresponds to the beginning of the LEX element in the VerbNet XML files. |
(package private) static void |
startMEMBER(Node n)
Prints the text that corresponds to the beginning of the MEMBER element in the VerbNet XML files. |
(package private) static void |
startMEMBERS(Node n)
Prints the text that corresponds to the beginning of the MEMBERS element in the VerbNet XML files. |
(package private) static void |
startNP(Node n)
Prints the text that corresponds to the beginning of the NP element in the VerbNet XML files. |
(package private) static void |
startPRED(Node n)
Prints the text that corresponds to the beginning of the PRED element in the VerbNet XML files. |
(package private) static void |
startPREP(Node n)
Prints the text that corresponds to the beginning of the PREP element in the VerbNet XML files. |
(package private) static void |
startSELRESTR(Node n)
Prints the text that corresponds to the beginning of the SELRESTR element in the VerbNet XML files. |
(package private) static void |
startSELRESTRS(Node n)
Prints the text that corresponds to the beginning of the SELRESTRS element in the VerbNet XML files. |
(package private) static void |
startSEMANTICS(Node n)
Prints the text that corresponds to the beginning of the SEMANTICS element in the VerbNet XML files. |
(package private) static void |
startSYNRESTR(Node n)
Prints the text that corresponds to the beginning of the SYNRESTR element in the VerbNet XML files. |
(package private) static void |
startSYNRESTRS(Node n)
Prints the text that corresponds to the beginning of the SYNRESTRS element in the VerbNet XML files. |
(package private) static void |
startSYNTAX(Node n)
Prints the text that corresponds to the beginning of the SYNTAX element in the VerbNet XML files. |
(package private) static void |
startTHEMROLE(Node n)
Prints the text that corresponds to the beginning of the THEMROLE element in the VerbNet XML files. |
(package private) static void |
startTHEMROLES(Node n)
Prints the text that corresponds to the beginning of the THEMROLES element in the VerbNet XML files. |
(package private) static void |
startVERB(Node n)
Prints the text that corresponds to the beginning of the VERB element in the VerbNet XML files. |
(package private) static void |
startVNCLASS(Node n)
Prints the text that corresponds to the beginning of the VNCLASS element in the VerbNet XML files. |
(package private) static void |
startVNSUBCLASS(Node n)
Prints the text that corresponds to the beginning of the VNSUBCLASS element in the VerbNet XML files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static String curFile
Inspector.performInspection()
method, which calls
setCurFile(String)
. This is used so that at
any point during the execution of the sweeper methods, the
currently-active file name is available for use. It is
given to EventManager.fireEvent(int, int, String, String, String, Element, Element)
upon firing of each event.
Inspector.performInspection()
,
startVNCLASS(Node)
private static String curClass
EventManager.fireEvent(int, int, String, String, String, Element, Element)
upon firing of each event.
startVNCLASS(Node)
,
startVNSUBCLASS(Node)
private static boolean hasBeenOther
startSELRESTRS(Node)
,
startSELRESTR(Node)
,
startARGS(Node)
,
startARG(Node)
,
startSYNRESTRS(Node)
,
startSYNRESTR(Node)
private static boolean usingOr
startSELRESTRS(Node)
,
startSELRESTR(Node)
,
startSYNRESTRS(Node)
,
startSYNRESTR(Node)
private static int restrsLevel
startSELRESTRS(Node)
,
endSELRESTRS(Node)
private static boolean prepSelRestrs
startPREP(Node)
,
endPREP(Node)
,
startSELRESTRS(Node)
,
endSELRESTRS(Node)
,
startSELRESTR(Node)
,
endSELRESTR(Node)
private static boolean trSelRestrs
startTHEMROLE(Node)
,
endTHEMROLE(Node)
,
startSELRESTRS(Node)
,
endSELRESTRS(Node)
,
startSELRESTR(Node)
,
endSELRESTR(Node)
private static boolean npSelRestrs
startNP(Node)
,
endNP(Node)
,
startSELRESTRS(Node)
,
endSELRESTRS(Node)
,
startSELRESTR(Node)
,
endSELRESTR(Node)
private static ArrayList members
printVerbFramePairs()
.
startMEMBERS(Node)
,
startMEMBER(Node)
,
printMembers()
,
printVerbFramePairs()
private static final int INDENT_WIDTH
private static String indentSpaces
INDENT_WIDTH
spaces. This
is set in the static initializer for this class and used when
the indentation flag (-i) is specified.
iprint(String)
,
iprintln(String)
,
classHierarchyPrint(Element, int)
private static int curIndentLevel
iprint(String)
and iprintln(String)
methods control whether the actual indentation is performed.
Indentation level is changed only by FILE, CLASS, SUBCLASS, and FRAME.
iprint(String)
,
iprintln(String)
,
startVNCLASS(Node)
,
endVNCLASS(Node)
,
startVNSUBCLASS(Node)
,
endVNSUBCLASS(Node)
,
startFRAME(Node)
,
endFRAME(Node)
private static String curVFVerbName
printVerbFramePairs()
method can communicate information to startDESCRIPTION(Node)
This string is used in constructing the header line for
the verb-frame pair.
startDESCRIPTION(Node)
,
printVerbFramePairs()
private static String curVFVerbWN
printVerbFramePairs()
method can communicate information to startDESCRIPTION(Node)
.
This string is used in constructing the header line for
the verb-frame pair.
startDESCRIPTION(Node)
,
printVerbFramePairs()
private static Node curVFMemberNode
printVerbFramePairs()
method can communicate information to startDESCRIPTION(Node)
.
This node is used when firing the 'start' and 'end' events
for the verb-frame pair.
startDESCRIPTION(Node)
,
endFRAME(Node)
,
printVerbFramePairs()
,
EventManager.fireEvent(int, int, String, String, String, Element, Element)
static int curVFFrameNum
private static Node curVFFrameNode
printVerbFramePairs()
method can communicate information to startDESCRIPTION(Node)
.
This node is used when firing the 'start' and 'end' events
for the verb-frame pair.
startDESCRIPTION(Node)
,
endFRAME(Node)
,
printVerbFramePairs()
,
EventManager.fireEvent(int, int, String, String, String, Element, Element)
private static ArrayList curVFFrameList
separate-23.1 [Members: 4, Frames: 5] separate-23.1-1 [Members: 7, Frames: 1] separate-23.1-2 [Members: 4, Frames: 1]When the Sweeper is scanning the main class's verb-frame pairs there are 4 members x 5 frames = 20 verb-frame pairs in
curVFFrameNode
. When the Sweeper is scanning the first subclass's verb-frame pairs
there are 7 members x (5+1) frames = 42 verb-frame pairs in curVFFrameNode
. When the Sweeper is scanning
the second subclass's verb-frame pairs there are 4 members x (5+1) frames = 24 verb-frame
pairs in curVFFrameNode
. A subclass does not inherit frames from a sibling
class, only ancestor classes. This array is loaded up in Inspector.processNodeByPairs(Node, ArrayList)
.
Remember that this member and all verb-frame-pair-related members are only used by the code if
the -q or -Vq options are specified.
printVerbFramePairs()
,
setFrameList(ArrayList)
,
Inspector.processNodeByPairs(Node, ArrayList)
private static String evText
EventManager.fireEvent(int, int, String, String, String, Element, Element)
when events are fired. This string does not necessarily equal
the line of text that is sent to stdout for the given element.
What is displayed on stdout is controlled by view options (-V operator)
but this string contains as much text for the line as is
available in the XML files for that element. In other words
this string is the same as the lines of text send to stdout for ALL
elements if and only if the option -Vab
were supplied (which prints
all information from the XML files to stdout).
pushText()
,
popText()
,
EventManager
,
EventManager.fireEvent(int, int, String, String, String, Element, Element)
private static String evTextLocal
evText
or evText
is initialized to it (in cases where the method in question
prints the first characters for a line of text).
evText
private static Stack evTexts
pushText()
,
popText()
private static Stack replicateLabels
pushTextForReplicate(String)
,
popTextForReplicate()
,
replicateLabels()
Constructor Detail |
---|
private Sweeper()
Method Detail |
---|
private static void println(String s)
System.out.println
.
s
- the string to print to stdout, followed by a carriage returnPrintStream.println(String)
private static void print(String s)
System.out.print
.
s
- the string to print to stdoutPrintStream.print(String)
private static void iprintln(String s)
println(String)
if the indentation
flag (-i) was not supplied on the command line (and thus
Inspector.flIndent
is false
). However,
if indentation was requested, then this method first prints
the appropriate number of spaces based on the current indentation level.
Indentation level is changed only by FILE, CLASS, SUBCLASS, and FRAME.
s
- the string to print to stdout, with possible indenting, followed
by a carriage returnprintln(String)
,
curIndentLevel
,
Inspector.flIndent
private static void iprint(String s)
print(String)
if the indentation
flag (-i) was not supplied on the command line (and thus
Inspector.flIndent
is false
). However,
if indentation was requested, then this method first prints
the appropriate number of spaces based on the current indentation level.
Indentation level is changed only by FILE, CLASS, SUBCLASS, and FRAME.
s
- the string to print to stdout, with possible indentingprint(String)
,
curIndentLevel
,
Inspector.flIndent
static void setCurFile(String newFileName)
newFileName
- the current file being processed in
Inspector.performInspection()
Inspector.performInspection()
,
curFile
static void setFrameList(ArrayList newFrameList)
Inspector.processNodeByPairs(Node, ArrayList)
).
This is only used when the Inspector is running in verb-frame
pair mode.
newFrameList
- the list containing all of the frames
visited so far since the main (root) classInspector.processNodeByPairs(Node, ArrayList)
,
printVerbFramePairs()
,
curVFFrameList
private static boolean hasKids(Node n, String which)
n
- the node whose children should be checkedwhich
- the tag name to look for among the children
private static int numKids(Node n, String which)
n
- the node whose children should be checkedwhich
- the tag name to look for among the children
private static void pushText()
classHierarchyPrint(Element, int)
,
startVNCLASS(Node)
,
startVNSUBCLASS(Node)
,
startDESCRIPTION(Node)
,
popText()
,
evTexts
private static void popText()
classHierarchyPrint(Element, int)
,
endVNCLASS(Node)
,
endVNSUBCLASS(Node)
,
endFRAME(Node)
,
pushText()
,
evTexts
private static void pushTextForReplicate(String text)
startVNCLASS(Node)
,
startVNSUBCLASS(Node)
,
startDESCRIPTION(Node)
,
popTextForReplicate()
,
replicateLabels
private static void popTextForReplicate()
endVNCLASS(Node)
,
endVNSUBCLASS(Node)
,
endFRAME(Node)
,
pushTextForReplicate(String)
,
replicateLabels
private static void replicateLabels()
Inspector.flReplicate
private static void classHierarchyPrint(Element cls, int level)
startVNCLASS(Node)
which is provided the document root Element object by Inspector.processNode(Node)
.
This method is only called when the class hierarchy option (-c) is provided.
The view operator (-V) is ignored and class counts (-m) are not honored.
cls
- the XML Element
object representing a class or subclasslevel
- the depth of the class or subclass (0 represents the main class in file)startVNCLASS(Node)
,
Inspector.incrementTagCounter(String)
,
Inspector.incrementTagCounter(String, int)
static void startVNCLASS(Node n)
n
- the Node
object representing
the active VNCLASS elementiprintln(String)
,
Inspector.incrementTagCounter(String)
static void endVNCLASS(Node n)
n
- the Node
object representing
the active VNCLASS elementstatic void startVNSUBCLASS(Node n)
n
- the Node
object representing
the active VNSUBCLASS elementiprintln(String)
,
Inspector.incrementTagCounter(String)
static void endVNSUBCLASS(Node n)
n
- the Node
object representing
the active VNSUBCLASS elementstatic void startMEMBERS(Node n)
<NO MEMBERS>
label
if there are no members for this class or subclass and
the "no-absence" flag (-z) was not supplied on the
command line.
n
- the Node
object representing
the active MEMBERS elementiprintln(String)
static void endMEMBERS(Node n)
startMEMBER(Node)
.
n
- the Node
object representing
the active MEMBERS elementprintMembers()
,
startMEMBER(Node)
static void startMEMBER(Node n)
endMEMBERS(Node)
method. This method adds the members to the list in sorted order
if the sort members (-s) flag is provded (Inspector.flSortMembers
).
n
- the Node
object representing
the active MEMBER elementprintMembers()
,
endMEMBERS(Node)
static void endMEMBER(Node n)
<!ELEMENT MEMBER EMPTY>
in the DTD, so any "closing text" could just be placed at the
end of the startMEMBER(Node)
method.
n
- the Node
object representing
the active MEMBER elementstatic void startTHEMROLES(Node n)
<NO THEMROLES>
label
if there are no thematic roles for this class or subclass and
the "no-absence" flag (-z) was not supplied on the
command line.
n
- the Node
object representing
the active THEMROLES elementiprintln(String)
static void endTHEMROLES(Node n)
n
- the Node
object representing
the active THEMROLES elementstatic void startTHEMROLE(Node n)
endTHEMROLE(org.w3c.dom.Node)
.
n
- the Node
object representing
the active THEMROLE elementiprint(String)
,
Inspector.incrementTagCounter(String)
static void endTHEMROLE(Node n)
n
- the Node
object representing
the active THEMROLE elementstatic void startSELRESTRS(Node n)
n
- the Node
object representing
the active SELRESTRS elementstatic void endSELRESTRS(Node n)
n
- the Node
object representing
the active SELRESTRS elementstatic void startSELRESTR(Node n)
n
- the Node
object representing
the active SELRESTR elementstatic void endSELRESTR(Node n)
<!ELEMENT SELRESTR EMPTY>
in the DTD, so any "closing text" could just be placed at the
end of the startSELRESTR(Node)
method.
n
- the Node
object representing
the active SELRESTR elementstatic void startFRAMES(Node n)
<NO FRAMES>
label
if there are no frames for this class or subclass and
the "no-absence" flag (-z) was not supplied on the
command line.
n
- the Node
object representing
the active FRAMES elementiprintln(String)
static void endFRAMES(Node n)
n
- the Node
object representing
the active FRAMES elementprintVerbFramePairs()
,
Inspector.printTagCounts(boolean)
static void startFRAME(Node n)
n
- the Node
object representing
the active FRAME elementiprint(String)
,
Inspector.incrementTagCounter(String)
static void endFRAME(Node n)
n
- the Node
object representing
the active FRAME elementstatic void startDESCRIPTION(Node n)
n
- the Node
object representing
the active DESCRIPTION elementstatic void endDESCRIPTION(Node n)
<!ELEMENT DESCRIPTION EMPTY>
in the DTD, so any "closing text" could just be placed at the
end of the startDESCRIPTION(Node)
method.
n
- the Node
object representing
the active DESCRIPTION elementstatic void startEXAMPLES(Node n)
n
- the Node
object representing
the active EXAMPLES elementstatic void endEXAMPLES(Node n)
n
- the Node
object representing
the active EXAMPLES elementstatic void startEXAMPLE(Node n)
n
- the Node
object representing
the active EXAMPLE elementiprintln(String)
,
Inspector.incrementTagCounter(String)
static void endEXAMPLE(Node n)
<!ELEMENT EXAMPLE (#PCDATA)>
in the DTD, so any "closing text" could just be placed at the
end of the startEXAMPLE(Node)
method. However,
for symmetry with other sweeper methods, it does fire the 'start'
and 'end' events for the EXAMPLE element.
n
- the Node
object representing
the active EXAMPLE elementstatic void startSEMANTICS(Node n)
n
- the Node
object representing
the active SEMANTICS elementstatic void endSEMANTICS(Node n)
n
- the Node
object representing
the active SEMANTICS elementstatic void startPRED(Node n)
n
- the Node
object representing
the active PRED elementiprint(String)
,
Inspector.incrementTagCounter(String)
static void endPRED(Node n)
n
- the Node
object representing
the active PRED elementstatic void startARGS(Node n)
startPRED(org.w3c.dom.Node)
.
n
- the Node
object representing
the active ARGS elementstatic void endARGS(Node n)
endPRED(org.w3c.dom.Node)
.
n
- the Node
object representing
the active ARGS elementstatic void startARG(Node n)
n
- the Node
object representing
the active ARG elementstatic void endARG(Node n)
<!ELEMENT ARG EMPTY>
in the DTD, so any "closing text" could just be placed at the
end of the startARG(Node)
method.
n
- the Node
object representing
the active ARG elementstatic void startSYNTAX(Node n)
n
- the Node
object representing
the active SYNTAX elementiprint(String)
,
Inspector.incrementTagCounter(String)
static void endSYNTAX(Node n)
n
- the Node
object representing
the active SYNTAX elementstatic void startNP(Node n)
n
- the Node
object representing
the active NP elementstatic void endNP(Node n)
n
- the Node
object representing
the active NP elementstatic void startSYNRESTRS(Node n)
n
- the Node
object representing
the active SYNRESTRS elementstatic void endSYNRESTRS(Node n)
n
- the Node
object representing
the active SYNRESTRS elementstatic void startSYNRESTR(Node n)
n
- the Node
object representing
the active SYNRESTR elementstatic void endSYNRESTR(Node n)
<!ELEMENT SYNRESTR EMPTY>
in the DTD, so any "closing text" could just be placed at the
end of the startSYNRESTR(Node)
method.
n
- the Node
object representing
the active SYNRESTR elementstatic void startPREP(Node n)
n
- the Node
object representing
the active PREP elementstartSELRESTRS(Node)
,
endSELRESTRS(Node)
static void endPREP(Node n)
n
- the Node
object representing
the active PREP elementstatic void startVERB(Node n)
n
- the Node
object representing
the active VERB elementstatic void endVERB(Node n)
<!ELEMENT VERB EMPTY>
in the DTD, so any "closing text" could just be placed at the
end of the startVERB(Node)
method.
n
- the Node
object representing
the active VERB elementstatic void startADJ(Node n)
n
- the Node
object representing
the active ADJ elementstatic void endADJ(Node n)
<!ELEMENT ADJ EMPTY>
in the DTD, so any "closing text" could just be placed at the
end of the startADJ(Node)
method.
n
- the Node
object representing
the active ADJ elementstatic void startADV(Node n)
n
- the Node
object representing
the active ADV elementstatic void endADV(Node n)
<!ELEMENT ADV EMPTY>
in the DTD, so any "closing text" could just be placed at the
end of the startADV(Node)
method.
n
- the Node
object representing
the active ADV elementstatic void startLEX(Node n)
n
- the Node
object representing
the active LEX elementstatic void endLEX(Node n)
<!ELEMENT LEX EMPTY>
in the DTD, so any "closing text" could just be placed at the
end of the startLEX(Node)
method.
n
- the Node
object representing
the active LEX elementprivate static void printMembers()
startMEMBER(Node)
as they were encountered but in order to implement the sorting feature, all the members
need to be visited and saved before the printing can occur.
The body of the loop follows the standard format of a single
sweeper method, as described in Sweeper
class's description.
startMEMBER(Node)
,
endMEMBERS(Node)
,
iprintln(String)
,
Inspector.incrementTagCounter(String)
private static void printVerbFramePairs()
members
array has already been properly
loaded and all the frames visited up to this point since the main
(root) class has been given to the Sweeper
class via
setFrameList(ArrayList)
. This method either visits verb-frame
pairs for this class or subclass in verb-major order or frame-major order depending
on the "invert-verb-frame-pair-order" flag (-v, Inspector.flVFPairsInvert
).
iprint(String)
,
endFRAMES(Node)
,
startMEMBER(Node)
,
curVFFrameList
,
Inspector.processNodeByPairs(Node, ArrayList)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |