Package org.apache.flex.compiler.internal.codegen.databinding.WatcherInfoBase

Examples of org.apache.flex.compiler.internal.codegen.databinding.WatcherInfoBase.WatcherType


    }

    private int encodeWatcher(InstructionList ret, WatcherInfoBase watcherInfoBase)
    {
        ret.pushNumericConstant(watcherInfoBase.getIndex());
        WatcherType type = watcherInfoBase.getType();
        int propertyCount = 1;           
        if (type == WatcherType.FUNCTION)
        {
            ret.pushNumericConstant(0);
View Full Code Here


    {
        log(insns, "makeWatcher slot " + watcherInfo.getIndex());
       
        insns.addInstruction(OP_getlocal2);         // stack: _watchers
        insns.pushNumericConstant(watcherInfo.getIndex());
        WatcherType type = watcherInfo.getType();
                                                    // stack: index, _watchers     
        if (type == WatcherType.FUNCTION)
        {
            FunctionWatcherInfo functionWatcherInfo = (FunctionWatcherInfo)watcherInfo;
          
View Full Code Here

      
        assert state.chaining || state.curChain==null;      // we shouldn't have a chain if we aren't chaining
      
        // Now round up the arguments to make the watcher info
        List<String> eventNames = null;
        WatcherType type = WatcherType.ERROR;
        String name = null;
        Object id = null;
       
        if ((def == null) && state.isObjectProxyExpression)
        {
View Full Code Here

            state.curChain = watcherInfo;                 // mark this as the new bottom link in the chain  
    }
   
    private static  WatcherType determineWatcherType(IDefinition definition)
    {
        WatcherType ret = WatcherType.ERROR;
       
        if (definition == null) return ret; // there are "special" watchers where this will be null
       
        if (definition instanceof IVariableDefinition)
        {
View Full Code Here

    {
        IASEmitter asEmitter = ((IMXMLBlockWalker) getMXMLWalker())
        .getASEmitter();

        writeNewline(watcherInfoBase.getIndex() + ASEmitterTokens.COMMA.getToken());
        WatcherType type = watcherInfoBase.getType();
        if (type == WatcherType.FUNCTION)
        {
            writeNewline("0" + ASEmitterTokens.COMMA.getToken());

            FunctionWatcherInfo functionWatcherInfo = (FunctionWatcherInfo)watcherInfoBase;
View Full Code Here

    {
        IASEmitter asEmitter = ((IMXMLBlockWalker) getMXMLWalker())
        .getASEmitter();

        writeNewline(watcherInfoBase.getIndex() + ASEmitterTokens.COMMA.getToken());
        WatcherType type = watcherInfoBase.getType();
        if (type == WatcherType.FUNCTION)
        {
            writeNewline("0" + ASEmitterTokens.COMMA.getToken());

            FunctionWatcherInfo functionWatcherInfo = (FunctionWatcherInfo)watcherInfoBase;
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.internal.codegen.databinding.WatcherInfoBase.WatcherType

Copyright © 2018 www.massapicom. 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.