本文整理汇总了C#中de.unika.ipd.grGen.libGr.SequenceCheckingEnvironment类的典型用法代码示例。如果您正苦于以下问题:C# SequenceCheckingEnvironment类的具体用法?C# SequenceCheckingEnvironment怎么用?C# SequenceCheckingEnvironment使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SequenceCheckingEnvironment类属于de.unika.ipd.grGen.libGr命名空间,在下文中一共展示了SequenceCheckingEnvironment类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CheckAndReturnAttributeType
public string CheckAndReturnAttributeType(SequenceCheckingEnvironment env)
{
base.Check(env); // check children
if(SourceVarType == "")
return ""; // we can't gain access to an attribute type if the variable is untyped, only runtime-check possible
GrGenType nodeOrEdgeType = TypesHelper.GetNodeOrEdgeType(SourceVarType, env.Model);
if(nodeOrEdgeType == null)
{
throw new SequenceParserException(Symbol, "node or edge type", SourceVarType);
}
AttributeType attributeType = nodeOrEdgeType.GetAttributeType(AttributeName);
if(attributeType == null)
{
throw new SequenceParserException(AttributeName, SequenceParserError.UnknownAttribute);
}
return TypesHelper.AttributeTypeToXgrsType(attributeType);
}
示例2: Check
public override void Check(SequenceCheckingEnvironment env)
{
env.CheckFunctionMethodCall(TargetExpr, this);
}
示例3: Type
public override string Type(SequenceCheckingEnvironment env)
{
LeftTypeStatic = Left.Type(env);
RightTypeStatic = Right.Type(env);
return SequenceExpressionHelper.Balance(SequenceExpressionType, LeftTypeStatic, RightTypeStatic, env.Model);
}