C# Class hl2glsl.GrammaticaNodeUtils

显示文件 Open project: SickheadGames/HL2GLSL Class Usage Examples

Public Methods

Method Description
CreateCommaToken ( ) : Node
CreateDotCommaToken ( ) : Node
CreateEqualToken ( ) : Node
CreateNewLineToken ( ) : Node
CreateNumberToken ( float value ) : Node
CreateSpaceToken ( ) : Node
CreateVaryingToken ( ) : Node
CreateVoidToken ( ) : Node
FindChildOf ( Node node, string childName ) : Node
FindChildOf ( Node node, string childName, int nth ) : Node
FindChildrenOf ( Node node, string childNameTree ) : ArrayList
FindChildrenOf ( Node node, string childNameTree, int index ) : ArrayList
GetChildren ( Production parent ) : ArrayList
MovePreviousLineRelatedCommentToInsideANode ( Production nodeToSearch, int indexOfTheRelatedInstruction, Production nodeToPut ) : void
MoveSameLineRelatedCommentToInsideANode ( Production nodeToSearch, int indexOfTheRelatedInstruction, Production nodeToPut ) : void
SetParent ( Node child, Node toBeParent ) : void
SwapChildrenPosition ( Production parent, Node node1, Node node2 ) : void

Method Details

CreateCommaToken() public static method

public static CreateCommaToken ( ) : Node
return Node

CreateDotCommaToken() public static method

public static CreateDotCommaToken ( ) : Node
return Node

CreateEqualToken() public static method

public static CreateEqualToken ( ) : Node
return Node

CreateNewLineToken() public static method

public static CreateNewLineToken ( ) : Node
return Node

CreateNumberToken() public static method

public static CreateNumberToken ( float value ) : Node
value float
return Node

CreateSpaceToken() public static method

public static CreateSpaceToken ( ) : Node
return Node

CreateVaryingToken() public static method

public static CreateVaryingToken ( ) : Node
return Node

CreateVoidToken() public static method

public static CreateVoidToken ( ) : Node
return Node

FindChildOf() public static method

public static FindChildOf ( Node node, string childName ) : Node
node Node
childName string
return Node

FindChildOf() public static method

public static FindChildOf ( Node node, string childName, int nth ) : Node
node Node
childName string
nth int
return Node

FindChildrenOf() public static method

public static FindChildrenOf ( Node node, string childNameTree ) : ArrayList
node Node
childNameTree string
return System.Collections.ArrayList

FindChildrenOf() public static method

public static FindChildrenOf ( Node node, string childNameTree, int index ) : ArrayList
node Node
childNameTree string
index int
return System.Collections.ArrayList

GetChildren() public static method

public static GetChildren ( Production parent ) : ArrayList
parent Production
return System.Collections.ArrayList

MovePreviousLineRelatedCommentToInsideANode() public static method

public static MovePreviousLineRelatedCommentToInsideANode ( Production nodeToSearch, int indexOfTheRelatedInstruction, Production nodeToPut ) : void
nodeToSearch Production
indexOfTheRelatedInstruction int
nodeToPut Production
return void

MoveSameLineRelatedCommentToInsideANode() public static method

public static MoveSameLineRelatedCommentToInsideANode ( Production nodeToSearch, int indexOfTheRelatedInstruction, Production nodeToPut ) : void
nodeToSearch Production
indexOfTheRelatedInstruction int
nodeToPut Production
return void

SetParent() public static method

public static SetParent ( Node child, Node toBeParent ) : void
child Node
toBeParent Node
return void

SwapChildrenPosition() public static method

public static SwapChildrenPosition ( Production parent, Node node1, Node node2 ) : void
parent Production
node1 Node
node2 Node
return void