C# Класс ABB.Swum.Nodes.VariableDeclarationNode

Represents a variable declaration in the program.
Наследование: ProgramElementNode
Показать файл Открыть проект

Открытые методы

Метод Описание
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