Exemplo n.º 1
0
        public override Exprent Copy()
        {
            SwitchExprent          swExpr        = new SwitchExprent(value.Copy(), bytecode);
            List <List <Exprent> > lstCaseValues = new List <List <Exprent> >();

            foreach (List <Exprent> lst in caseValues)
            {
                lstCaseValues.Add(new List <Exprent>(lst));
            }
            swExpr.SetCaseValues(lstCaseValues);
            return(swExpr);
        }
Exemplo n.º 2
0
 private InvocationExprent(InvocationExprent expr)
     : this()
 {
     name            = expr.GetName();
     classname       = expr.GetClassname();
     isStatic__      = expr.IsStatic();
     canIgnoreBoxing = expr.canIgnoreBoxing;
     functype        = expr.GetFunctype();
     instance        = expr.GetInstance();
     if (instance != null)
     {
         instance = instance.Copy();
     }
     invocationTyp            = expr.GetInvocationTyp();
     invokeDynamicClassSuffix = expr.GetInvokeDynamicClassSuffix();
     stringDescriptor         = expr.GetStringDescriptor();
     descriptor    = expr.GetDescriptor();
     lstParameters = new List <Exprent>(expr.GetLstParameters());
     ExprProcessor.CopyEntries(lstParameters);
     AddBytecodeOffsets(expr.bytecode);
     bootstrapArguments = expr.GetBootstrapArguments();
 }
Exemplo n.º 3
0
 public override Exprent Copy()
 {
     return(new MonitorExprent(monType, value.Copy(), bytecode));
 }
Exemplo n.º 4
0
 public override Exprent Copy()
 {
     return(new FieldExprent(name, classname, isStatic__, instance == null ? null : instance
                             .Copy(), descriptor, bytecode));
 }
Exemplo n.º 5
0
 public override Exprent Copy()
 {
     return(new AssignmentExprent(left.Copy(), right.Copy(), bytecode));
 }
Exemplo n.º 6
0
 public override Exprent Copy()
 {
     return(new ExitExprent(exitType, value == null ? null : value.Copy(), retType, bytecode
                            ));
 }
Exemplo n.º 7
0
 public override Exprent Copy()
 {
     return(new ArrayExprent(array.Copy(), index.Copy(), hardType, bytecode));
 }
Exemplo n.º 8
0
 public override Exprent Copy()
 {
     return(new IfExprent(condition.Copy(), bytecode));
 }