Package org.apache.imperius.spl.parser.compiler.symboltable

Examples of org.apache.imperius.spl.parser.compiler.symboltable.PropertySymbol


                referenceTypeName=CIMSPLTypeConstants.getReferenceTypeName(path);
              }

              if(logger.isLoggable(Level.FINE))
                logger.fine(Thread.currentThread().getName()+" symboltable does not currently contain the given property, so creating property symbol");
              Symbol symbol =new PropertySymbol(qualifiedPropertyName,type,referenceTypeName,cimproperty.isArray(),_isKey(cimproperty),true);
              //add property to properties list
              if(logger.isLoggable(Level.FINE))
                logger.fine(Thread.currentThread().getName()+" adding property to Map in datacollector : "+qualifiedPropertyName);
              symbols.put(qualifiedPropertyName, symbol);
View Full Code Here


        }
        boolean isPropertyOfClass = true;
        boolean isKey = false;

        // create a new property symbol object
        Symbol s = new PropertySymbol(f.getName(), internalType,
            referenceTypeName, isArray, isKey, isPropertyOfClass);

        // insert into map
        // xiping's test 06/19/09
        // a Java class field name must be unique
View Full Code Here

      if(logger.isLoggable(Level.FINE))
        logger.fine(Thread.currentThread().getName()+ "constant expression "+e.toString());
            Object result = e.evaluate();
      String constantSymbol = cd.getIdent();
      // xiping's modification, 06/23/09
      PropertySymbol constantSym = (PropertySymbol)symTab.getSymbol(constantSymbol);
//      Collection c = symTab.getSymbol(constantSymbol);
//      Iterator it = c.iterator();
//      PropertySymbol constantSym = (PropertySymbol)it.next();
            if(logger.isLoggable(Level.FINE))
                logger.fine(Thread.currentThread().getName()+"constantSym name"+ constantSym.getName()+" current value:"+constantSym.getValue()+" setting value to:"+result.toString());
           
            constantSym.setValue(result);
    }

        logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "evaluate");
  
  }
View Full Code Here

        }
        boolean isArray = CIMSPLTypeConstants.getIsArray(cimproperty.getType().getType());

        if(logger.isLoggable(Level.FINE))
          logger.fine(Thread.currentThread().getName()+" symboltable does not currently contain the given property, so creating property symbol");
        Symbol symbol = new PropertySymbol(qualifiedPropertyName,type,referenceTypeName,isArray,_isKey(cimproperty),true);
        //add property to properties list
        if(logger.isLoggable(Level.FINE))
          logger.fine(Thread.currentThread().getName()+" adding property to Map in datacollector : "+qualifiedPropertyName);
        symbols.put(qualifiedPropertyName, symbol);
View Full Code Here

          String qualifiedPropertyNm=methodOrParam;                                                                // the symbol
          if(!targetName.equalsIgnoreCase(""))   
          {
            qualifiedPropertyNm=targetName+"."+methodOrParam;
          }
          PropertySymbol prop = (PropertySymbol) symTab.getSymbol( qualifiedPropertyNm); // extract
          result = prop.getValue(); // get its value
          if (prop.isArray())
          {
            this._dataType.setIsArray(true);
          }
          else
          {
View Full Code Here

          // sym instanceof PropertySymbol
          {
            // System.out.println("sym instanceof PropertySymbol");
            // //System.out.println("propType "+propType.getType());

            PropertySymbol pSym = (PropertySymbol) sym;
            if (pSym.isArray())
            {
              array2Exists = true;
              // System.out.println("pSym.isArray()");
              _dataType.setIsArray(false);
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.parser.compiler.symboltable.PropertySymbol

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.