Package org.eclipse.jst.jsf.common.internal.types

Examples of org.eclipse.jst.jsf.common.internal.types.CompositeType


        {
        return null;
        }
   
    String methodSig = Signature.createMethodSignature(params, returnTypeSignature);
    return new CompositeType(methodSig, IAssignable.ASSIGNMENT_TYPE_NONE);
  }
View Full Code Here


      boolean methodBindingExpected = false;
      for (final Iterator it = elVals.iterator(); it.hasNext();) {
        final IValidELValues validValues = (IValidELValues) it.next();

        try {
          final CompositeType type = validValues
              .getExpectedRuntimeType();
          if (type != null
              && type.getAssignmentTypeMask() == IAssignable.ASSIGNMENT_TYPE_NONE) {
            methodBindingExpected = true;
            if (expectedBindings != null) {
              expectedBindings.addAll(Arrays.asList(validValues
                  .getExpectedRuntimeType().getSignatures()));
            } else {
View Full Code Here

    String returnType = getReturnType();
    if (returnType == null)
      return null;
   
    String methodSig = Signature.createTypeSignature(returnType, true);
    return new CompositeType(methodSig, getAssignmentValue());
  }
View Full Code Here

    String[] signaturedTypes = new String[ len ];
    for( int i = 0; i < len; i++ )
    {
      signaturedTypes[ i ] = Signature.createTypeSignature(types[ i ], true);
    }
    return new CompositeType( signaturedTypes, getAssignmentType());
  }
View Full Code Here

   * @see org.eclipse.jst.jsf.metadataprocessors.features.IValidELValues#getExpectedRuntimeType()
   */
  public CompositeType getExpectedRuntimeType() throws ELIsNotValidException
  {
    String type = Signature.createTypeSignature(getReturnType(), true);
    return new CompositeType(type, getAssignmentType());
  }
View Full Code Here

                elContext, elText, _validationContext
                        .getSymbolResolverFactory(), _validationContext
                        .getReporter());
        elValidator.validateXMLNode();

        final CompositeType exprType = elValidator.getExpressionType();
        if (exprType != null)
        {
          // Ignore the expression whose last two segments are of types Object.
          final CompositeType boxedType = TypeTransformer
              .transformBoxPrimitives(exprType);
          final String[] testSignatures = boxedType.getSignatures();
          if (testSignatures.length > 0 && TypeConstants.TYPE_JAVAOBJECT.equals(testSignatures[0]))
          {
            if (elText.indexOf('.') != -1)
            {
              String elText2 = elText.substring(0, elText.lastIndexOf('.'));
                    final ELExpressionValidator elValidator2 = new ELExpressionValidator(
                            elContext, elText2, _validationContext
                                    .getSymbolResolverFactory(), _validationContext
                                    .getReporter());
                    elValidator2.validateXMLNode();

                    final CompositeType exprType2 = elValidator.getExpressionType();
                  final CompositeType boxedType2 = TypeTransformer.transformBoxPrimitives(exprType2);
                  final String[] testSignatures2 = boxedType2.getSignatures();
                  if (testSignatures2.length > 0 && TypeConstants.TYPE_JAVAOBJECT.equals(testSignatures2[0]))
                  {
                    return;
                  }
            }
          }
         
            for (final Iterator it = elVals.iterator(); it.hasNext();)
            {
                final IValidELValues elval = (IValidELValues) it.next();
                final String attributeVal = attrAdapter.getValue();
                CompositeType expectedType;
                Diagnostic status = null;
                try
                {
                    expectedType = elval.getExpectedRuntimeType();
View Full Code Here

                {
                    // final List converters =
                    // component.getDecorators(ComponentFactory.CONVERTER);

                    // (ConverterDecorator) it.next();
                    final CompositeType alternativeTypes = createCompositeType(
                            expectedType, exprTypes, component
                                    .getDecorators(ComponentFactory.CONVERTER));
                    if (DEBUG)
                    {
                        System.out.println(String.format(
View Full Code Here

                }
                types.addAll(createSignatures(converterTypeInfo.getForClass()));
            }
        }
        types.addAll(getRegisteredConversionTypesByClass());
        return new CompositeType(types.toArray(new String[0])
                , initialTypes.getAssignmentTypeMask());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.common.internal.types.CompositeType

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.