Examples of TypeInfoImpl


Examples of org.apache.imperius.spl.parser.util.TypeInfoImpl

    public boolean validate() throws SPLException
    {
        logger.entering(sourceClass,Thread.currentThread().getName()+" "+ "validate");

        TypeInfo eType = _exp.getType();
        _dataType = new TypeInfoImpl(TypeConstants.stringType,null,false);
        if (TypeResolver.isString(eType))
        {
            logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "validate");
          
            return true;
View Full Code Here

Examples of org.apache.imperius.spl.parser.util.TypeInfoImpl

        // case 2: ident1.ident2
        // case 3: ident1[expr]
        // case 4: ident1.ident2[expr]
        if(!_identTupleList.isEmpty())
        {
          TypeInfo returnType = new TypeInfoImpl(TypeConstants.referenceType,
              _classNameOrInstanceVariableName,
              isArray);
          int i = 0;
          Iterator identTupleIt = _identTupleList.iterator();
          while(identTupleIt.hasNext())
          {
            if(returnType.getType() == TypeConstants.referenceType)
            {
              String referenceTypeName = returnType.getReferenceTypeName();
              IdentPrimaryTuple ipt = (IdentPrimaryTuple)identTupleIt.next();
              if(i++ == 0) // first element in the list has the same symbol table
              { // as the primary expression
                ipt.setSymbolTable(_symTab);
              }
              returnType = ipt.validate(referenceTypeName);
            } else {
              identTupleIt.next()// <--- Added by dawood
           
          }
          _dataType.copy(returnType);
          //_isArray = returnType.getIsArray();
          _referenceTypeName = returnType.getReferenceTypeName();
        }
        else // local constant
        {
            boolean symbolExists = _symTab.symbolExists(_classNameOrInstanceVariableName, true);
            if( symbolExists )
View Full Code Here

Examples of org.apache.imperius.spl.parser.util.TypeInfoImpl

    while(paramListIterator.hasNext())
    {
      Expression expression=(Expression)paramListIterator.next();
      if(_collectionType == null)
      {
        _collectionType = new TypeInfoImpl(expression.getType());
        _collectionType.setIsArray(true);
        if(TypeResolver.isReference(_collectionType))
        {
          _collectionType.setReferenceTypeName(expression.getReferenceTypeName());
          _referenceTypeName = expression.getReferenceTypeName();
View Full Code Here

Examples of org.apache.imperius.spl.parser.util.TypeInfoImpl

   
    public ArgumentImpl(String type, String name, boolean isArray, String referenceName) throws SPLException
    {
        logger.entering(sourceClass,Thread.currentThread().getName()+" "+ "Argument");
        int tp = TypeConstants.getActualType(type);
        _type = new TypeInfoImpl(tp,referenceName,isArray);
        _name = name;
       // _isArray = isArray;
       // _referenceName = referenceName;
       
        logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "Argument");
View Full Code Here

Examples of org.apache.imperius.spl.parser.util.TypeInfoImpl

   
    public ArgumentImpl(int type, String name, boolean isArray, String referenceName) throws SPLException
    {
        logger.entering(sourceClass,Thread.currentThread().getName()+" "+ "Argument");
       
        _type = new TypeInfoImpl(type,referenceName,isArray);
        _name = name;
     //   _isArray = isArray;
     //   _referenceName = referenceName;
       
       
View Full Code Here

Examples of org.apache.imperius.spl.parser.util.TypeInfoImpl

    public void setType(String type) throws SPLException
    {
        logger.entering(sourceClass,Thread.currentThread().getName()+" "+ "setType");
        int tp = TypeConstants.getActualType(type);
       
        this._type = new TypeInfoImpl(tp,null,false);
       
        logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "setType");
    }
View Full Code Here

Examples of org.apache.imperius.spl.parser.util.TypeInfoImpl

    public boolean validate() throws SPLException
    {
        logger.entering(sourceClass,Thread.currentThread().getName()+" "+ "validate");

        Iterator expIterator = this._expressions.iterator();
        TypeInfo currentDataType = new TypeInfoImpl(TypeConstants.INVALID);
        while (expIterator.hasNext())
        {
            Expression exp = (Expression) expIterator.next();
            TypeInfo type = exp.getType();
            if (!TypeResolver.isNumeric(type))
            {
                logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "validate");
               
                return false;
            }
            if (currentDataType.getType() == TypeConstants.INVALID)
            {
                currentDataType = type;
            }
            _dataType = TypeResolver.binaryNumericPromotionResolver(
                    currentDataType, type);
View Full Code Here

Examples of org.apache.imperius.spl.parser.util.TypeInfoImpl

    public boolean validate() throws SPLException
    {
        logger.entering(sourceClass, Thread.currentThread().getName() + " "
        + "validate");
   
        _dataType = new TypeInfoImpl(TypeConstants.referenceType, null, false);

    logger.exiting(sourceClass, Thread.currentThread().getName() + " "
        + "validate");
   
    return true;
View Full Code Here

Examples of org.apache.imperius.spl.parser.util.TypeInfoImpl

      String referenceType,
      boolean isArray,
      boolean isKey,
      boolean isProp) throws SPLException
  {
    _dataType = new TypeInfoImpl(type,referenceType,isArray);
    _name = n;
    _isKey = isKey;
    _isPropertyOfClass = isProp;
  }
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.