Package org.apache.flex.abc.semantics

Examples of org.apache.flex.abc.semantics.MethodInfo.addDefaultValue()


        mi.setParamTypes(paramTypes);

        mi.setFlags(ABCConstants.HAS_OPTIONAL);

        mi.addDefaultValue(new PooledValue(false));

        mi.setReturnType(NAME_VOID);

        InstructionList insns = new InstructionList(10);
         insns.addInstruction(OP_getlocal0);
View Full Code Here


                    IParameterNode paramNode = arg.getNode();
                    scope.addProblem(new NonConstantParamInitializerProblem(paramNode.getAssignedValueNode()));
                      // re-write non-constant expression to undefined, so resulting ABC will pass the verifier.
                      initValue = ABCConstants.UNDEFINED_VALUE;
                }
                mi.addDefaultValue(new PooledValue(initValue));
            }
            }
          mi.setParamTypes(method_args);
            mi.setParamNames(param_names);
        }
View Full Code Here

            int functionTraitKind,
            InstructionList body)
    {
        MethodInfo mi = new MethodInfo();
        for (Object defaultParameterValue : defaultParameterValues)
            mi.addDefaultValue(new PooledValue(defaultParameterValue));
        mi.setParamTypes(new Vector<Name>(parameterTypes));
        mi.setReturnType(returnType);
        if (needsRest)
            mi.setFlags(mi.getFlags() | ABCConstants.METHOD_Needrest);
        FunctionGeneratorHelper.generateFunction(visitor, mi, body);
View Full Code Here

        addEventInfo.setParamTypes(paramTypes);

        //addEventInfo.setFlags(ABCConstants.HAS_OPTIONAL);

        addEventInfo.addDefaultValue(new PooledValue(false));
        addEventInfo.addDefaultValue(new PooledValue(0));
        addEventInfo.addDefaultValue(new PooledValue(false));

        addEventInfo.setReturnType(NAME_VOID);
View Full Code Here

        addEventInfo.setParamTypes(paramTypes);

        //addEventInfo.setFlags(ABCConstants.HAS_OPTIONAL);

        addEventInfo.addDefaultValue(new PooledValue(false));
        addEventInfo.addDefaultValue(new PooledValue(0));
        addEventInfo.addDefaultValue(new PooledValue(false));

        addEventInfo.setReturnType(NAME_VOID);

        InstructionList addEventInsns = new InstructionList(10);
View Full Code Here

        //addEventInfo.setFlags(ABCConstants.HAS_OPTIONAL);

        addEventInfo.addDefaultValue(new PooledValue(false));
        addEventInfo.addDefaultValue(new PooledValue(0));
        addEventInfo.addDefaultValue(new PooledValue(false));

        addEventInfo.setReturnType(NAME_VOID);

        InstructionList addEventInsns = new InstructionList(10);
        addEventInsns.addInstruction(OP_getlocal0);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.