コード例 #1
0
 public static OpBuilder GetOpBuilder(Type type, ParserRuleContext ctx, IlBuilder builder)
 {
     if (type == typeof(bool))
     {
         return(new BooleanOpBuilder(ctx, builder));
     }
     else if (type == typeof(string))
     {
         return(new StringOpBuilder(ctx, builder));
     }
     else if (type == typeof(decimal))
     {
         return(new DecimalOpBuilder(ctx, builder));
     }
     throw ctx.Exception("Unspported operation.");
 }
コード例 #2
0
 public DecimalOpBuilder(ParserRuleContext ctx, IlBuilder builder) : base(ctx, builder)
 {
 }
コード例 #3
0
 public StringOpBuilder(ParserRuleContext ctx, IlBuilder builder) : base(ctx, builder)
 {
 }
コード例 #4
0
 public OpBuilder(ParserRuleContext ctx, IlBuilder builder)
 {
     Ctx = ctx;
     Il  = builder;
 }
コード例 #5
0
 public BooleanOpBuilder(ParserRuleContext ctx, IlBuilder builder) : base(ctx, builder)
 {
 }