• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# expression.Expression类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中de.unika.ipd.grGen.expression.Expression的典型用法代码示例。如果您正苦于以下问题:C# Expression类的具体用法?C# Expression怎么用?C# Expression使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Expression类属于de.unika.ipd.grGen.expression命名空间,在下文中一共展示了Expression类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: YieldAssignment

 public YieldAssignment(String left, bool isVar, String targetType, Expression right)
 {
     Left = left;
     IsVar = isVar;
     TargetType = targetType;
     Right = right;
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:7,代码来源:Yielding.cs


示例2: Copy

 public override Yielding Copy(string renameSuffix)
 {
     Expression[] valuesCopy = new Expression[Values.Length];
     for(int i = 0; i < Values.Length; ++i)
         valuesCopy[i] = Values[i].Copy(renameSuffix);
     Expression[] sourceNamesCopy = new Expression[SourceNames.Length];
     for(int i = 0; i < SourceNames.Length; ++i)
         sourceNamesCopy[i] = SourceNames[i].Copy(renameSuffix);
     return new DebugHighlightStatement(Message.Copy(renameSuffix), Values, SourceNames);
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:10,代码来源:Yielding.cs


示例3: IndexAccessEquality

 public IndexAccessEquality(IndexDescription index, 
     PatternElement neededElement, bool variablesNeeded,
     Expression expr)
     : base(index, neededElement, variablesNeeded)
 {
     Expr = expr;
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:7,代码来源:lgspPatternElements.cs


示例4: PatternVariable

        ////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Instantiates a new PatternVariable object.
        /// </summary>
        /// <param name="type">The GrGen type of the variable.</param>
        /// <param name="name">The name of the variable.</param>
        /// <param name="unprefixedName">Pure name of the variable as specified in the .grg without any prefixes.</param>
        /// <param name="parameterIndex">Specifies to which rule parameter this variable corresponds.</param>
        /// <param name="defToBeYieldedTo">Iff true the element is only defined in its PointOfDefinition pattern,
        ///     it gets matched in another, nested or called pattern which yields it to the containing pattern.</param>
        /// <param name="initialization">The initialization expression for the variable if some was defined, otherwise null.</param>
        public PatternVariable(VarType type, String name, String unprefixedName,
            int parameterIndex, bool defToBeYieldedTo, Expression initialization)
        {
            this.type = type;
            this.name = name;
            this.unprefixedName = unprefixedName;
            this.ParameterIndex = parameterIndex;
            this.defToBeYieldedTo = defToBeYieldedTo;
            this.initialization = initialization;
        }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:22,代码来源:lgspPatternElements.cs


示例5: PatternGraphEmbedding

        ////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Constructs a PatternGraphEmbedding object.
        /// </summary>
        /// <param name="name">The name of the usage of the subpattern.</param>
        /// <param name="matchingPatternOfEmbeddedGraph">The embedded subpattern.</param>
        /// <param name="connections">An array with the expressions defining how the subpattern is connected
        /// to the containing pattern (graph elements and basic variables) .</param>
        /// <param name="yields">An array with the def elements and variables 
        /// from the containing pattern yielded to from the subpattern.</param>
        /// <param name="neededNodes">An array with names of nodes needed by this embedding.</param>
        /// <param name="neededEdges">An array with names of edges needed by this embedding.</param>
        /// <param name="neededVariables">An array with names of variables needed by this embedding.</param>
        /// <param name="neededVariableTypes">An array with types of variables needed by this embedding.</param>
        public PatternGraphEmbedding(String name, LGSPMatchingPattern matchingPatternOfEmbeddedGraph,
                Expression[] connections, String[] yields,
                String[] neededNodes, String[] neededEdges,
                String[] neededVariables, VarType[] neededVariableTypes)
        {
            this.name = name;
            this.matchingPatternOfEmbeddedGraph = matchingPatternOfEmbeddedGraph;
            this.connections = connections;
            this.yields = yields;
            this.neededNodes = neededNodes;
            this.neededEdges = neededEdges;
            this.neededVariables = neededVariables;
            this.neededVariableTypes = neededVariableTypes;

            this.matchingPatternOfEmbeddedGraph.uses += 1;
        }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:31,代码来源:lgspPatternElements.cs


示例6: PatternCondition

        ////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Constructs a PatternCondition object.
        /// </summary>
        /// <param name="conditionExpression">The condition expression to evaluate.</param>
        /// <param name="neededNodes">An array of node names needed by this condition.</param>
        /// <param name="neededEdges">An array of edge names needed by this condition.</param>
        /// <param name="neededVariables">An array of variable names needed by this condition.</param>
        /// <param name="neededVariableTypes">An array of variable types (corresponding to the variable names) needed by this condition.</param>
        public PatternCondition(Expression conditionExpression, 
            String[] neededNodes, String[] neededEdges, String[] neededVariables, VarType[] neededVariableTypes)
        {
            ConditionExpression = conditionExpression;
            NeededNodes = neededNodes;
            NeededEdges = neededEdges;
            NeededVariables = neededVariables;
            NeededVariableTypes = neededVariableTypes;
        }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:19,代码来源:lgspPatternElements.cs


示例7: IndexAccessDescending

 public IndexAccessDescending(IndexDescription index, 
     PatternElement neededElement, bool variablesNeeded,
     Expression from, bool includingFrom,
     Expression to, bool includingTo)
     : base(index, neededElement, variablesNeeded)
 {
     From = from;
     IncludingFrom = includingFrom;
     To = to;
     IncludingTo = includingTo;
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:11,代码来源:lgspPatternElements.cs


示例8: MapAdd

 public MapAdd(String left, Expression key, Expression value)
     : base(left, key)
 {
     Value = value;
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:5,代码来源:Yielding.cs


示例9: SetAdd

 public SetAdd(String left, Expression value)
     : base(left, value)
 {
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:4,代码来源:Yielding.cs


示例10: DequeRemove

 public DequeRemove(String left, Expression right)
     : base(left, right)
 {
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:4,代码来源:Yielding.cs


示例11: ArrayRemove

 public ArrayRemove(String left, Expression right)
     : base(left, right)
 {
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:4,代码来源:Yielding.cs


示例12: SetMapRemove

 public SetMapRemove(String left, Expression right)
     : base(left, right)
 {
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:4,代码来源:Yielding.cs


示例13: RecordStatement

 public RecordStatement(Expression toRecord)
 {
     ToRecordExpression = toRecord;
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:4,代码来源:Yielding.cs


示例14: YieldMethod

 public YieldMethod(String left, Expression right)
 {
     Left = left;
     Right = right;
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:5,代码来源:Yielding.cs


示例15: YieldAssignmentIndexed

 public YieldAssignmentIndexed(String left, Expression right, Expression index)
 {
     Left = left;
     Right = right;
     Index = index;
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:6,代码来源:Yielding.cs


示例16: ForFunction

 public ForFunction(String variable, String unprefixedVariable, String variableType, Expression function, Yielding[] statements)
 {
     Variable = variable;
     UnprefixedVariable = unprefixedVariable;
     VariableType = variableType;
     Function = function;
     Statements = statements;
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:8,代码来源:Yielding.cs


示例17: DequeAdd

 public DequeAdd(String left, Expression value, Expression index)
     : base(left, value)
 {
     Index = index;
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:5,代码来源:Yielding.cs


示例18: UniqueLookup

 public UniqueLookup(PatternElement neededElement, bool variablesNeeded, Expression expr)
 {
     NeededElement = neededElement;
     VariablesNeeded = variablesNeeded;
     Expr = expr;
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:6,代码来源:lgspPatternElements.cs


示例19: SetMapUnion

 public SetMapUnion(String left, Expression right)
     : base(left, right)
 {
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:4,代码来源:Yielding.cs


示例20: SetMapIntersect

 public SetMapIntersect(String left, Expression right)
     : base(left, right)
 {
 }
开发者ID:jblomer,项目名称:GrGen.NET,代码行数:4,代码来源:Yielding.cs



注:本文中的de.unika.ipd.grGen.expression.Expression类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# lgsp.SourceBuilder类代码示例发布时间:2022-05-26
下一篇:
C# db.Database类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap