Skip navigation links
A B C D E F G H I L M O P R S T X 

A

add(Node) - Method in class xmlhelpers.XMLNodeList
Adds a new node to this list.
addBlock(int) - Method in class parsehelpers.Snippet
Adds a new block to this snippet in the given level.
addBlockToBranches(XMLNode) - Static method in class sequenceextractor.ASTPreprocessor
Adds a block to all branch statement types (e.g.
addClassVariable(String, String) - Method in class parsehelpers.LookUpTable
Adds a new class variable in this look up table.
addMethodVariable(String, String) - Method in class parsehelpers.LookUpTable
Adds a new method variable in this look up table.
addNewChildNode(XMLNode) - Method in class xmlhelpers.XMLNode
Adds a new child node to this node.
addNewChildNodeInTheBeginning(XMLNode) - Method in class xmlhelpers.XMLNode
Adds a new child node as the first child node of this node.
addNewChildNodes(XMLNodeList) - Method in class xmlhelpers.XMLNode
Adds a list of nodes as child nodes to this node.
addStatement(Statement) - Method in class parsehelpers.Snippet
Adds a statement to the last added block.
allAndBlockStatementTypes - Static variable in class parsehelpers.StatementTypes
All statement types including blocks and catch clauses.
allStatementTypes - Static variable in class parsehelpers.StatementTypes
All statement types apart from blocks and catch clauses.
ASTPreprocessor - Class in sequenceextractor
The AST preprocessor class that receives an AST and preprocesses it.
ASTPreprocessor() - Constructor for class sequenceextractor.ASTPreprocessor
 

B

Block - Class in parsehelpers
Class that represents a series of statements.
Block() - Constructor for class parsehelpers.Block
 
blocks - Variable in class parsehelpers.Snippet
The blocks that are contained in this snippet.
blockStatementType - Static variable in class parsehelpers.StatementTypes
The block statement type.
branchStatementTypes - Static variable in class parsehelpers.StatementTypes
The branch statement types, including conditions and loops.

C

catchClauseStatementType - Static variable in class parsehelpers.StatementTypes
The catch statement type.
compareTo(LevelOrderPair) - Method in class sequenceextractor.LevelOrderPair
Compares this object with the specified object, comparing first the order and the level of the objects.
conditionStatementTypes - Static variable in class parsehelpers.StatementTypes
The condition statement types, including if, switch and try statements.

D

detectIfElseBranches(XMLNode) - Static method in class sequenceextractor.ASTPreprocessor
Detects if/else if/else statements and puts them all under the same branch block.

E

elseBlock(String) - Method in class parsehelpers.Snippet
Adds a final path to the last branch block (e.g.
elseifBlock(String) - Method in class parsehelpers.Snippet
Adds a path to the last branch block.
endBlock(String) - Method in class parsehelpers.Snippet
Ends the last block.
enterClass() - Method in class parsehelpers.LookUpTable
Method that is called when entering a new class.
enterClass(String) - Method in class parsehelpers.LookUpTable
Method that is called when entering a new class.
enterMethod() - Method in class parsehelpers.LookUpTable
Method that is called when entering a new method.
equals(Object) - Method in class sequenceextractor.LevelOrderPair
Indicates whether the given pair is equal to this one, i.e.
extractSequence(String) - Static method in class sequenceextractor.SequenceExtractor
Extracts the sequence for a snippet.
extractSequence(String, boolean, boolean, boolean, boolean, boolean, boolean) - Static method in class sequenceextractor.SequenceExtractor
Extracts the sequence for a snippet.

F

FlattenedSequencePrinter - Class in outputhelpers
Class that prints the snippets as flattened sequences.
FlattenedSequencePrinter() - Constructor for class outputhelpers.FlattenedSequencePrinter
 
FlattenedTreePrinter - Class in outputhelpers
Class that prints the snippets as flattened trees.
FlattenedTreePrinter() - Constructor for class outputhelpers.FlattenedTreePrinter
 

G

getASTofSnippet(String, boolean) - Static method in class sequenceextractor.SequenceExtractor
Returns the Abstract Syntax Tree of a snippet.
getASTofSnippet(String) - Static method in class sequenceextractor.SequenceExtractor
Returns the Abstract Syntax Tree of a snippet.
getChildNodeByName(String) - Method in class xmlhelpers.XMLNode
Returns the first child node of this node by name.
getChildNodes() - Method in class xmlhelpers.XMLNode
Returns the child nodes of this node.
getChildNodesByName(String) - Method in class xmlhelpers.XMLNode
Returns a list of the child nodes of this node by name.
getChildNodesRecursivelyByName(Set<String>) - Method in class xmlhelpers.XMLNode
Returns all child nodes that have the given names resursively.
getChildNodesRecursivelyByName(String...) - Method in class xmlhelpers.XMLNode
Returns all child nodes that have the given names resursively.
getDeepChildNodesRecursivelyByName(Set<String>) - Method in class xmlhelpers.XMLNode
Returns all deep child nodes that have the given names resursively.
getDeepChildNodesRecursivelyByName(String...) - Method in class xmlhelpers.XMLNode
Returns all deep child nodes that have the given names resursively.
getElementsByTagName(String) - Method in class xmlhelpers.XMLDocument
Returns all elements of the document with the given tag name.
getParentNode() - Method in class xmlhelpers.XMLNode
Returns the parent node of this node.
getSuperClass() - Method in class parsehelpers.LookUpTable
Returns the super class of the class for which the look up table is created.
getTextContent() - Method in class xmlhelpers.XMLNode
Returns the content of this node as a string.
getTypeOfVariable(String) - Method in class parsehelpers.LookUpTable
Returns the type of a variable given its name.

H

hashCode() - Method in class sequenceextractor.LevelOrderPair
Returns a hash code value for this pair given its level and order, to be used in hashmaps.
hasMoreThanOneChildren() - Method in class xmlhelpers.XMLNode
Checks if this node has more than one children.
hasName(String) - Method in class xmlhelpers.XMLNode
Checks if this node has the given name.
hasName(Set<String>) - Method in class xmlhelpers.XMLNode
Checks if the name of this node is contained in the given set.
hasName(String...) - Method in class xmlhelpers.XMLNode
Checks if the name of this node is contained in the given strings.

I

insertNewParentNode(XMLNode) - Method in class xmlhelpers.XMLNode
Replaces the parent node of this node with the given new parent node.
isTextNode() - Method in class xmlhelpers.XMLNode
Checks if this node is a text node.

L

level - Variable in class sequenceextractor.LevelOrderPair
The level of this pair.
levelInner() - Method in class parsehelpers.Snippet
Moves a level in for this snippet.
LevelOrderPair - Class in sequenceextractor
A pair denoting the level and the order of an extracted statement.
LevelOrderPair(int, int) - Constructor for class sequenceextractor.LevelOrderPair
Initializes this pair with a level and an order.
levelOuter() - Method in class parsehelpers.Snippet
Moves a level out for this snippet.
LookUpTable - Class in parsehelpers
Class that implements a look up table for variables in all levels.
LookUpTable() - Constructor for class parsehelpers.LookUpTable
Initializes this table.
loopStatementTypes - Static variable in class parsehelpers.StatementTypes
The loop statement types, including for, while and do/while statements.

M

main(String[]) - Static method in class sequenceextractor.PythonBinder
Function used to bind this library to a python file.
main(String[]) - Static method in class sequenceextractor.SequenceExtractorTest
Gives a snippet to the sequence extractor and prints the extracted sequence.

O

order - Variable in class sequenceextractor.LevelOrderPair
The order of this pair.
outputhelpers - package outputhelpers
 

P

parsehelpers - package parsehelpers
 
preprocessBranches(XMLDocument) - Static method in class sequenceextractor.ASTPreprocessor
Preprocesses the branches of an AST by first adding a block to all branches (e.g.
PythonBinder - Class in sequenceextractor
Class used to bind this library to a python file.
PythonBinder() - Constructor for class sequenceextractor.PythonBinder
 

R

removeChild(XMLNode) - Method in class xmlhelpers.XMLNode
Removes and returns the given child from this node.
removeParentNode() - Method in class xmlhelpers.XMLNode
Removes the parent node of this node.
removeXMLNodes(String, String...) - Static method in class xmlhelpers.XMLDocument
Removes the xml nodes from the XML string given as input.
replaceChild(XMLNode, XMLNode) - Method in class xmlhelpers.XMLNode
Replaces a child node of this node with another new child node.

S

sequenceextractor - package sequenceextractor
 
SequenceExtractor - Class in sequenceextractor
The sequence extractor class that receives code snippets and translates it to sequences.
SequenceExtractor() - Constructor for class sequenceextractor.SequenceExtractor
 
SequenceExtractorTest - Class in sequenceextractor
Class used as a test of the SequenceExtractor.
SequenceExtractorTest() - Constructor for class sequenceextractor.SequenceExtractorTest
 
SequencePrinter - Class in outputhelpers
Class that prints the snippets as sequences.
SequencePrinter() - Constructor for class outputhelpers.SequencePrinter
 
simpleStatementTypes - Static variable in class parsehelpers.StatementTypes
The simple statements, including expressions, variable declarations, etc.
Snippet - Class in parsehelpers
Class that represents a snippet as a sequence of blocks.
Snippet() - Constructor for class parsehelpers.Snippet
Initializes this snippet.
SnippetPrinter - Interface in outputhelpers
Interface that defines how the snippets should be represented to string.
snippetToString(Snippet, boolean) - Method in class outputhelpers.FlattenedSequencePrinter
Receives a snippet and returns a flattened sequence representation.
snippetToString(Snippet, boolean) - Method in class outputhelpers.FlattenedTreePrinter
Receives a snippet and returns a string representation in the form of flattened trees.
snippetToString(Snippet, boolean) - Method in class outputhelpers.SequencePrinter
Receives a snippet and returns a sequence representation for the snippet.
snippetToString(Snippet, boolean) - Method in interface outputhelpers.SnippetPrinter
Receives a snippet and returns a string representation.
snippetToString(Snippet, boolean) - Method in class outputhelpers.TreePrinter
Receives a snippet and returns a tree representation for the snippet.
startBlock(String) - Method in class parsehelpers.Snippet
Starts a new block.
Statement - Class in parsehelpers
A statement that represents a single java command.
Statement() - Constructor for class parsehelpers.Statement
Initializes an empty statement.
Statement(String, String) - Constructor for class parsehelpers.Statement
Initializes a special type of statement including the type of flow (e.g.
StatementSet - Class in parsehelpers
Class that represents a set of statements.
StatementSet(String...) - Constructor for class parsehelpers.StatementSet
Initializes this set providing its items.
StatementSet(StatementSet...) - Constructor for class parsehelpers.StatementSet
Initializes this set providing other sets.
StatementTypes - Class in parsehelpers
Class keeping hold of the different sets of statement types in ASTs.
StatementTypes() - Constructor for class parsehelpers.StatementTypes
 
subList(int) - Method in class xmlhelpers.XMLNodeList
Returns a sublist of this list fro the given index to the end of the list.

T

textContentStartsWith(String) - Method in class xmlhelpers.XMLNode
Denotes whether the text content of this node starts with the given text.
toString() - Method in class parsehelpers.LookUpTable
Returns a string representation of this look up table.
toString() - Method in class parsehelpers.Snippet
Returns a string representation of this snippet.
toString() - Method in class parsehelpers.Statement
Returns a string representation of this statement.
toString() - Method in class sequenceextractor.LevelOrderPair
Returns a string representation of this pair.
toString() - Method in class xmlhelpers.XMLNode
Returns a string representation of this node as a string representation of the inner node.
toXMLString() - Method in class xmlhelpers.XMLDocument
Returns the XML representation of this document.
toXMLString() - Method in class xmlhelpers.XMLNode
Returns the XML representation of this node.
TreePrinter - Class in outputhelpers
Class that prints the snippets as trees.
TreePrinter() - Constructor for class outputhelpers.TreePrinter
 

X

XMLDocument - Class in xmlhelpers
Class that represents an XML document.
XMLDocument(String) - Constructor for class xmlhelpers.XMLDocument
Initializes this class given the content of an XML document as a string.
xmlhelpers - package xmlhelpers
 
XMLNode - Class in xmlhelpers
Class that represents an XML node.
XMLNode(Node) - Constructor for class xmlhelpers.XMLNode
Initializes this object given an XML node.
XMLNode(String) - Constructor for class xmlhelpers.XMLNode
Initializes this object given a name.
XMLNodeList - Class in xmlhelpers
Class that represents a list of XML nodes.
XMLNodeList(NodeList) - Constructor for class xmlhelpers.XMLNodeList
Initializes this class given a node list object.
XMLNodeList() - Constructor for class xmlhelpers.XMLNodeList
Initializes this class as an empty list of nodes.
A B C D E F G H I L M O P R S T X 
Skip navigation links

Copyright © 2017. All rights reserved.