本文整理汇总了C#中INode.JjtClose方法的典型用法代码示例。如果您正苦于以下问题:C# INode.JjtClose方法的具体用法?C# INode.JjtClose怎么用?C# INode.JjtClose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类INode
的用法示例。
在下文中一共展示了INode.JjtClose方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CloseNodeScope
/// <summary>
/// A conditional node is constructed if its condition is true.
/// All the nodes that have been pushed since the node was opened are
/// made children of the conditional node, which is then pushed
/// on to the stack. If the condition is false the node is not
/// constructed and they are left on the stack.
/// </summary>
public void CloseNodeScope(INode n, bool condition)
{
if (condition)
{
int a = NodeArity();
//mk = marks.remove(marks.size()-1);
mk = marks.Last();
marks.Remove(mk);
while (a-- > 0)
{
INode c = PopNode();
c.JjtSetParent(n);
n.JjtAddChild(c, a);
}
n.JjtClose();
PushNode(n);
node_created = true;
}
else
{
//mk = marks.remove(marks.size()-1);
mk = marks.Last();
marks.Remove(mk);
node_created = false;
}
}