Beispiel #1
0
 protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value)
 {
     return(request.InsertRepresentationValue(GetId())
            .AssertNotNull(() => new CmlRuntimeError_InvalidIdException("representation", GetId())));
 }
Beispiel #2
0
 public abstract CmlClass AssertGetClass(CmlContext context);
Beispiel #3
0
 public override object Instance(CmlContext context)
 {
     return(operation());
 }
Beispiel #4
0
 public CmlContext_Child_UnitSpace(CmlContext p, CmlUnitSpace s) : base(p)
 {
     unit_space = s;
 }
Beispiel #5
0
 static public RepresentationEngine GetEngine(this CmlContext item)
 {
     return(item.GetTargetInfo().GetEngine());
 }
Beispiel #6
0
 public void Compile(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value)
 {
     value = CompileValue(context, request, this_value);
 }
Beispiel #7
0
 protected abstract void ApplyInternal(CmlContext context, REPRESENTATION_TYPE representation);
Beispiel #8
0
 protected override void ApplyInternal(CmlContext context, REPRESENTATION_TYPE representation)
 {
     process(context, representation);
 }
Beispiel #9
0
 public abstract object Instance(CmlContext context);
Beispiel #10
0
 public object AssertInstance(CmlContext context, string tag, CmlEntity entity)
 {
     return(GetInstancer(tag).IfNotNull(i => i.Instance(context, entity))
            .AssertNotNull(() => new CmlRuntimeError_InvalidIdException("entity", tag)));
 }
Beispiel #11
0
 public object AssertInstanceBase(CmlContext context, string tag)
 {
     return(instancers.GetValue(tag)
            .AssertNotNull(() => new CmlRuntimeError_InvalidIdException("instancer", tag))
            .Instance(context));
 }
Beispiel #12
0
 public void AssertApplyGeneralModifiers(CmlContext context, object representation)
 {
     GetGeneralModifiers(representation.GetTypeEX())
     .Process(m => m.Apply(context, representation));
 }
Beispiel #13
0
 public abstract void SolidifyInstance(CmlContext context, object representation, CmlSet set);
Beispiel #14
0
        protected override ILStatement CompileILStatement(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value)
        {
            GetSingleStatement().Compile(context, request, this_value);

            return(GetSingleStatement().GetILStatement());
        }
Beispiel #15
0
 public override object Instance(CmlContext context)
 {
     return(GetConstructor().Invoke(context));
 }
Beispiel #16
0
 public override CmlValue Solidify(CmlContext context)
 {
     return(GetLinkSourceWithEntitySource().Solidify(context));
 }
Beispiel #17
0
 protected abstract CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value);
Beispiel #18
0
 public override CmlValue Solidify(CmlContext context)
 {
     return(GetFunctionSource().Solidify(context));
 }
Beispiel #19
0
 public EffigyLink_Single(CmlContext context, VariableInstance v, EffigySingleDestination d, EffigyClassInfo c) : base(context, c)
 {
     variable_instance = v;
     destination       = d;
 }
Beispiel #20
0
 private void SolidifyInstanceInternal(CmlValue value, object representation, EffigyLink effigy_link, CmlContext context)
 {
     throw new CmlRuntimeError_InfoSupportException(value.GetTypeEX(), set_member);
 }
Beispiel #21
0
        protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value)
        {
            GetSubExpression().Compile(context, request, request);

            return(GetSubExpression().GetValue());
        }
Beispiel #22
0
 protected override object InstanceInternal(CmlContext context)
 {
     return(entity.Instance(context));
 }
Beispiel #23
0
 static public CmlContext NewUnitSpace(this CmlContext item)
 {
     return(new CmlContext_Child_UnitSpace(item, new CmlUnitSpace()));
 }
Beispiel #24
0
 protected abstract ILStatement CompileILStatement(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value);
Beispiel #25
0
        private bool PushToRepresentation(CmlValue_SystemValue value, object representation, CmlContext context)
        {
            variable.SetContents(representation, value.GetSystemValue());

            return(true);
        }
Beispiel #26
0
 public void Compile(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value)
 {
     il_statement = CompileILStatement(context, request, this_value);
 }
Beispiel #27
0
 public override CmlClass AssertGetClass(CmlContext context)
 {
     return(new CmlClass_Entity(context.GetTargetInfo().GetTargetType(), "<inline>", entity));
 }
Beispiel #28
0
 public override CmlValue Solidify(CmlContext context)
 {
     return(new CmlValue_Function(GetFunction().CompileFunctionInstance(context), this));
 }
Beispiel #29
0
 public CmlContext_Child_FragmentSpace(CmlContext p, CmlFragmentSpace s) : base(p)
 {
     fragment_space = s;
 }
Beispiel #30
0
        private void SolidifyInstanceInternal(CmlValue_Link value, object representation, EffigyLink effigy_link, CmlContext context)
        {
            context.AddVariableLink(
                value.GetGroup(),

                new VariableLink_Simple_Process(
                    new VariableNode(value.GetVariableInstance()),
                    new VariableNode(variable.CreateStrongInstance(representation)),
                    o => effigy_link.GetValues().FindIndexOf(o),
                    i => effigy_link.GetValues().Get(i.ConvertEX <int>())
                    )
                );
        }