C# Class ABB.Swum.DefaultBaseVerbRule

This rule assumes that it is the last rule being applied, and is therefore the default rule for methods.
Inheritance: BaseVerbRule
Show file Open project: abb-iss/Swum.NET

Public Methods

Method Description
ConstructSwum ( ProgramElementNode node ) : void

Constructs the SWUM for the given node, using this rule.

DefaultBaseVerbRule ( ) : System

Creates a new DefaultBaseVerbRule using default values for data sets.

DefaultBaseVerbRule ( HashSet specialWords, HashSet booleanArgumentVerbs, HashSet nounPhraseIndicators, PositionalFrequencies positionalFrequencies ) : System

Creates a new DefaultBaseVerbRule.

DefaultBaseVerbRule ( PartOfSpeechData posData, Tagger tagger, IdSplitter splitter ) : System

Creates a new DefaultBaseVerbRule.

DefaultBaseVerbRule ( PartOfSpeechData posData, Tagger tagger, IdSplitter splitter, HashSet specialWords, HashSet booleanArgumentVerbs, HashSet nounPhraseIndicators, PositionalFrequencies positionalFrequencies ) : System

Creates a new DefaultBaseVerbRule.

InClass ( ProgramElementNode node ) : bool

Determines whether the given node meets the conditions of this rule. Since this is a default rule, it returns True for any MethodDeclarationNode.

Method Details

ConstructSwum() public method

Constructs the SWUM for the given node, using this rule.
public ConstructSwum ( ProgramElementNode node ) : void
node ABB.Swum.Nodes.ProgramElementNode The node to construct SWUM for.
return void

DefaultBaseVerbRule() public method

Creates a new DefaultBaseVerbRule using default values for data sets.
public DefaultBaseVerbRule ( ) : System
return System

DefaultBaseVerbRule() public method

Creates a new DefaultBaseVerbRule.
public DefaultBaseVerbRule ( HashSet specialWords, HashSet booleanArgumentVerbs, HashSet nounPhraseIndicators, PositionalFrequencies positionalFrequencies ) : System
specialWords HashSet A list of words that indicate the method name needs special handling.
booleanArgumentVerbs HashSet A list of verbs that indicate that the boolean arguments to a method should be included in the UnknownArguments list.
nounPhraseIndicators HashSet A list of word that indicate that beginning of a noun phrase.
positionalFrequencies ABB.Swum.WordData.PositionalFrequencies Positional frequency data.
return System

DefaultBaseVerbRule() public method

Creates a new DefaultBaseVerbRule.
public DefaultBaseVerbRule ( PartOfSpeechData posData, Tagger tagger, IdSplitter splitter ) : System
posData ABB.Swum.WordData.PartOfSpeechData The part-of-speech data to use.
tagger Tagger The part-of-speech tagger to use.
splitter IdSplitter The identifier splitter to use.
return System

DefaultBaseVerbRule() public method

Creates a new DefaultBaseVerbRule.
public DefaultBaseVerbRule ( PartOfSpeechData posData, Tagger tagger, IdSplitter splitter, HashSet specialWords, HashSet booleanArgumentVerbs, HashSet nounPhraseIndicators, PositionalFrequencies positionalFrequencies ) : System
posData ABB.Swum.WordData.PartOfSpeechData The part-of-speech data to use.
tagger Tagger The part-of-speech tagger to use.
splitter IdSplitter The identifier splitter to use.
specialWords HashSet A list of words that indicate the method name needs special handling.
booleanArgumentVerbs HashSet A list of verbs that indicate that the boolean arguments to a method should be included in the UnknownArguments list.
nounPhraseIndicators HashSet A list of word that indicate that beginning of a noun phrase.
positionalFrequencies ABB.Swum.WordData.PositionalFrequencies Positional frequency data.
return System

InClass() public method

Determines whether the given node meets the conditions of this rule. Since this is a default rule, it returns True for any MethodDeclarationNode.
public InClass ( ProgramElementNode node ) : bool
node ABB.Swum.Nodes.ProgramElementNode The node to test.
return bool