本文整理汇总了C#中Acrid.Fujin.SableCC.node.Node类的典型用法代码示例。如果您正苦于以下问题:C# Node类的具体用法?C# Node怎么用?C# Node使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Node类属于Acrid.Fujin.SableCC.node命名空间,在下文中一共展示了Node类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReplaceBy
public void ReplaceBy(Node node)
{
if(parent_node != null)
{
parent_node.ReplaceChild(this, node);
}
}
示例2: RemoveChild
internal override void RemoveChild(Node child)
{
if ( _mult_ == child )
{
_mult_ = null;
return;
}
}
示例3: CloneNode
protected Node CloneNode(Node node)
{
if(node != null)
{
return (Node) node.Clone();
}
return null;
}
示例4: ReplaceChild
internal override void ReplaceChild(Node oldChild, Node newChild)
{
}
示例5: ReplaceChild
internal override void ReplaceChild(Node oldChild, Node newChild)
{
if ( _keyword_func_ == oldChild )
{
SetKeywordFunc ((TKeywordFunc) newChild);
return;
}
if ( _operator_opening_parenthesis_ == oldChild )
{
SetOperatorOpeningParenthesis ((TOperatorOpeningParenthesis) newChild);
return;
}
if ( _operator_closing_parenthesis_ == oldChild )
{
SetOperatorClosingParenthesis ((TOperatorClosingParenthesis) newChild);
return;
}
if ( _type_ == oldChild )
{
SetType ((PType) newChild);
return;
}
if ( _block_ == oldChild )
{
SetBlock ((PBlock) newChild);
return;
}
}
示例6: GetIn
public virtual Object GetIn(Node node)
{
if(inhash == null)
{
return null;
}
return inhash[node];
}
示例7: DefaultOut
public virtual void DefaultOut(Node node)
{
}
示例8: ReplaceChild
internal abstract void ReplaceChild(Node oldChild, Node newChild);
示例9: Parent
internal void Parent(Node parent_node)
{
this.parent_node = parent_node;
}
示例10: ToString
protected string ToString(Node node)
{
if(node != null)
{
return node.ToString();
}
return "";
}
示例11: RemoveChild
internal abstract void RemoveChild(Node child);
示例12: SetOut
public virtual void SetOut(Node node, Object outobj)
{
if(this.outhash == null)
{
this.outhash = new Hashtable(1);
}
if(outobj != null)
{
this.outhash[node] = outobj;
}
else
{
this.outhash.Remove(node);
}
}
示例13: SetIn
public virtual void SetIn(Node node, Object inobj)
{
if(this.inhash == null)
{
this.inhash = new Hashtable(1);
}
if(inobj != null)
{
this.inhash[node] = inobj;
}
else
{
this.inhash.Remove(node);
}
}
示例14: DefaultIn
public virtual void DefaultIn(Node node)
{
}
示例15: DefaultCase
public virtual void DefaultCase(Node node)
{
}