Package org.jboss.errai.codegen.meta

Examples of org.jboss.errai.codegen.meta.MetaParameter


  public String toString() {
    return type.getFullyQualifiedName();
  }

  public MetaParameter getMetaParameter() {
    return new MetaParameter() {
      @Override
      public String getName() {
        return name;
      }
View Full Code Here


  public static Map<String, MetaClass> determineTypeVariables(MetaMethod method) {
    HashMap<String, MetaClass> typeVariables = new HashMap<String, MetaClass>();

    int methodParmIndex = 0;
    for (MetaType methodParmType : method.getGenericParameterTypes()) {
      MetaParameter parm = method.getParameters()[methodParmIndex];
      resolveTypeVariable(typeVariables, methodParmType, parm.getType());
      methodParmIndex++;
    }

    return typeVariables;
  }
View Full Code Here

  public String toString() {
    return type.getFullyQualifiedName();
  }

  public MetaParameter getMetaParameter() {
    return new MetaParameter() {
      @Override
      public String getName() {
        return name;
      }
View Full Code Here

  public MetaParameter[] getParameters() {
    List<Parameter> parameters = defParameters.getParameters();
    if (parameters != null) {
      List<MetaParameter> metaParameterList = new ArrayList<MetaParameter>();
      for (final Parameter p : parameters) {
        metaParameterList.add(new MetaParameter() {
          @Override
          public String getName() {
            return p.getName();
          }
View Full Code Here

    }
    else {
      List<MetaParameter> metaParameterList = new ArrayList<MetaParameter>();
      for (final Parameter p : defParameters.getParameters()) {

        metaParameterList.add(new MetaParameter() {
          @Override
          public String getName() {
            return p.getName();
          }
View Full Code Here

  public MetaParameter[] getParameters() {
    final List<Parameter> parameters = defParameters.getParameters();
    if (parameters != null) {
      final List<MetaParameter> metaParameterList = new ArrayList<MetaParameter>();
      for (final Parameter p : parameters) {
        metaParameterList.add(new MetaParameter() {
          @Override
          public String getName() {
            return p.getName();
          }
View Full Code Here

    }
    else {
      final List<MetaParameter> metaParameterList = new ArrayList<MetaParameter>();
      for (final Parameter p : defParameters.getParameters()) {

        metaParameterList.add(new MetaParameter() {
          @Override
          public String getName() {
            return p.getName();
          }
View Full Code Here

        pType = type.getParameterizedType();
        break;

      case Parameter:
        MetaParameter parm = injectableInstance.getParm();
        type = parm.getType();

        pType = type.getParameterizedType();
        break;
    }
View Full Code Here

      // assemble parameters for private method invoker (first param is the widget instance)
      PrivateAccessUtil.addPrivateAccessStubs("jsni", pageImplBuilder, metaMethod, new Modifier[] {});

      if (methodCanTakeParameters) {
        for (int i = 1; i < paramValues.length; i++) {
          MetaParameter paramSpec = metaMethod.getParameters()[i - 1];
          if (paramSpec.getType().equals(MetaClassFactory.get(HistoryToken.class))) {
            paramValues[i] = Stmt.loadVariable("state");
          }
          else {
            throw new UnsupportedOperationException(
                     createAnnotionName(annotation) + " method " +
                          metaMethod.getDeclaringClass().getFullyQualifiedName() + "." + metaMethod.getName() +
                         " has an illegal parameter of type " + paramSpec.getType().getFullyQualifiedName());
          }
        }

      }
      else {
View Full Code Here

      }
      else if (allInjectors.size() == 1) {
        final Object injectorElement = allInjectors.iterator().next();

        if (injectorElement instanceof MetaConstructor || injectorElement instanceof MetaMethod) {
          final MetaParameter mp = beanMetric.getConsolidatedMetaParameters().iterator().next();

          dataModelType = mp.getType();
          assertTypeIsBindable(dataModelType);
          dataBinderRef = inst.getTransientValue(TRANSIENT_BINDER_VALUE, DataBinder.class);
          inst.ensureMemberExposed();
        }
        else {
View Full Code Here

TOP

Related Classes of org.jboss.errai.codegen.meta.MetaParameter

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.