C# 클래스 ABB.Swum.Nodes.VariableDeclarationNode

Represents a variable declaration in the program.
상속: ProgramElementNode
파일 보기 프로젝트 열기: abb-iss/Swum.NET

공개 메소드들

메소드 설명
ToString ( ) : string

Creates a string representation, consisting of the type and the variable name.

VariableDeclarationNode ( string name ) : System

Creates a new VariableDeclarationNode.

VariableDeclarationNode ( string name, IdSplitter splitter ) : System

Creates a new VariableDeclarationNode.

VariableDeclarationNode ( string name, string type, bool isPrimitive, IdSplitter splitter, Tagger tagger ) : System

Creates a new VariableDeclarationNode.

VariableDeclarationNode ( string name, string type, bool isPrimitive, IdSplitter splitter, Tagger tagger, Location location ) : System

Creates a new VariableDeclarationNode.

VariableDeclarationNode ( string name, string type, bool isPrimitive, IdSplitter splitter, Tagger tagger, Location location, int position ) : System

Creates a new VariableDeclarationNode.

보호된 메소드들

메소드 설명
InitType ( string typeName, bool isPrimitive, IdSplitter splitter, Tagger tagger ) : void

Creates a TypeNode from a string version of the type, and set it to the Type property.

메소드 상세

InitType() 보호된 메소드

Creates a TypeNode from a string version of the type, and set it to the Type property.
protected InitType ( string typeName, bool isPrimitive, IdSplitter splitter, Tagger tagger ) : void
typeName string A string version of the variable's type.
isPrimitive bool Whether the type is a primitive data type.
splitter IdSplitter An IdSplitter to split the type into words.
tagger Tagger A Tagger to tag the parts-of-speech of the type words.
리턴 void

ToString() 공개 메소드

Creates a string representation, consisting of the type and the variable name.
public ToString ( ) : string
리턴 string

VariableDeclarationNode() 공개 메소드

Creates a new VariableDeclarationNode.
public VariableDeclarationNode ( string name ) : System
name string The name of the variable.
리턴 System

VariableDeclarationNode() 공개 메소드

Creates a new VariableDeclarationNode.
public VariableDeclarationNode ( string name, IdSplitter splitter ) : System
name string The name of the variable.
splitter IdSplitter An IdSplitter to split the name into words.
리턴 System

VariableDeclarationNode() 공개 메소드

Creates a new VariableDeclarationNode.
public VariableDeclarationNode ( string name, string type, bool isPrimitive, IdSplitter splitter, Tagger tagger ) : System
name string The name of the variable.
type string A string giving the type of the variable.
isPrimitive bool Whether the type is a primitive data type.
splitter IdSplitter An IdSplitter to split the name into words.
tagger Tagger A part-of-speech tagger to tag the words in the name.
리턴 System

VariableDeclarationNode() 공개 메소드

Creates a new VariableDeclarationNode.
public VariableDeclarationNode ( string name, string type, bool isPrimitive, IdSplitter splitter, Tagger tagger, Location location ) : System
name string The name of the variable.
type string A string giving the type of the variable.
isPrimitive bool Whether the type is a primitive data type.
splitter IdSplitter An IdSplitter to split the name into words.
tagger Tagger A part-of-speech tagger to tag the words in the name.
location Location The program location of the variable declaration.
리턴 System

VariableDeclarationNode() 공개 메소드

Creates a new VariableDeclarationNode.
public VariableDeclarationNode ( string name, string type, bool isPrimitive, IdSplitter splitter, Tagger tagger, Location location, int position ) : System
name string The name of the variable.
type string A string giving the type of the variable.
isPrimitive bool Whether the type is a primitive data type.
splitter IdSplitter An IdSplitter to split the name into words.
tagger Tagger A part-of-speech tagger to tag the words in the name.
location Location The program location of the variable declaration.
position int The position of this variable in the declaration list.
리턴 System