C# 클래스 ABB.Swum.EmptyNameRule

The rule to construct the SWUM for a method with an empty name. This is most likely to occur when the entire name is determined to be preamble, thus leaving no regular name.
상속: UnigramMethodRule
파일 보기 프로젝트 열기: abb-iss/Swum.NET

공개 메소드들

메소드 설명
ConstructSwum ( ProgramElementNode node ) : void

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

EmptyNameRule ( ) : System

Creates a new EmptyNameRule using default values for data sets.

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

Creates a new EmptyNameRule.

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

Creates a new EmptyNameRule.

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

Creates a new EmptyNameRule.

보호된 메소드들

메소드 설명
MakeClassification ( MethodDeclarationNode node ) : bool

Determines whether the given MethodDeclarationNode meets the conditions for this rule. This method assumes that the name is parsed, preamble is stripped, and digits and prepositions are tagged.

메소드 상세

ConstructSwum() 공개 메소드

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.
리턴 void

EmptyNameRule() 공개 메소드

Creates a new EmptyNameRule using default values for data sets.
public EmptyNameRule ( ) : System
리턴 System

EmptyNameRule() 공개 메소드

Creates a new EmptyNameRule.
public EmptyNameRule ( 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.
리턴 System

EmptyNameRule() 공개 메소드

Creates a new EmptyNameRule.
public EmptyNameRule ( 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.
리턴 System

EmptyNameRule() 공개 메소드

Creates a new EmptyNameRule.
public EmptyNameRule ( 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.
리턴 System

MakeClassification() 보호된 메소드

Determines whether the given MethodDeclarationNode meets the conditions for this rule. This method assumes that the name is parsed, preamble is stripped, and digits and prepositions are tagged.
protected MakeClassification ( MethodDeclarationNode node ) : bool
node ABB.Swum.Nodes.MethodDeclarationNode The MethodDeclarationNode to test.
리턴 bool