|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.softevo.ample.eval.XMLPatternFileReader.ParseHandler
protected class XMLPatternFileReader.ParseHandler
The handler used to parse the file.
Field Summary | |
---|---|
protected java.lang.String |
className
The class name currently processed. |
protected int |
discoveryIndex
The discovery index of the pattern currently analysed. |
static java.lang.String |
EL_CLASS
String constant for class element. |
static java.lang.String |
EL_METHOD
String constant for method element. |
static java.lang.String |
EL_PATTERN
String constant for pattern element. |
static java.lang.String |
EL_PATTERNS
String constant for pattern element. |
static java.lang.String |
EL_SYMBOLS
String constant for symbols element. |
protected int |
lastOccurence
The last time the pattern occured. |
protected java.util.Vector |
methods
The methods. |
protected java.util.HashMap |
methodToOccurencesMap
|
protected int |
occurences
The number of times the pattern occured. |
protected boolean |
parsingCalledSymbolsElement
|
protected java.util.HashSet |
patterns
The patterns for the class currently analysed. |
Constructor Summary | |
---|---|
protected |
XMLPatternFileReader.ParseHandler()
|
Method Summary | |
---|---|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Propagates the entry to all associated analysers. |
protected void |
handleException(AnalysisException exception)
This method provides default exception handling (currently a call to System.exit() . |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Sets the state and the element type depending on the name of the element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EL_PATTERNS
public static final java.lang.String EL_CLASS
public static final java.lang.String EL_PATTERN
public static final java.lang.String EL_METHOD
public static final java.lang.String EL_SYMBOLS
protected java.lang.String className
protected java.util.Vector methods
protected java.util.HashSet patterns
protected int discoveryIndex
protected int occurences
protected int lastOccurence
protected boolean parsingCalledSymbolsElement
protected java.util.HashMap methodToOccurencesMap
Constructor Detail |
---|
protected XMLPatternFileReader.ParseHandler()
Method Detail |
---|
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
namespaceURI
- the active namespacelocalName
- the unqualified element nameqName
- the qualified element nameatts
- the attributes of the elementpublic void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
protected void handleException(AnalysisException exception)
System.exit()
.
exception
- the exception that occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |