Examples of BuildMetaMethod


Examples of org.jboss.errai.codegen.framework.meta.impl.build.BuildMetaMethod

        parameters.add(Parameter.of(parmType, parm.getName()));
        i++;
      }

      BuildMetaMethod newMethod = new BuildMetaMethod(buildMetaClass, EmptyStatement.INSTANCE,
              GenUtil.scopeOf(method), GenUtil.modifiersOf(method), method.getName(), returnType,
              method.getGenericReturnType(),
              DefParameters.fromParameters(parameters), ThrowsDeclaration.of(method.getCheckedExceptions()));

      newMethod.setReifiedFormOf(method);

      buildMetaClass.addMethod(newMethod);
    }

    return buildMetaClass;
View Full Code Here

Examples of org.jboss.errai.codegen.framework.meta.impl.build.BuildMetaMethod

        }
        else {
          dParameters = defParameters;
        }

        BuildMetaMethod buildMetaMethod = new BuildMetaMethod(classDefinition, statement, scope,
                modifiers, name, returnType, null, dParameters, throwsDeclaration);

        classDefinition.addMethod(buildMetaMethod);
        return (T) ClassBuilder.this;
      }
View Full Code Here

Examples of org.jboss.errai.codegen.framework.meta.impl.build.BuildMetaMethod

      @Override
      public ClassStructureBuilderAbstractMethodOption callback(final Statement statement,
                                                                final DefParameters parameters,
                                                                final DefModifiers modifiers,
                                                                final ThrowsDeclaration throwsDeclaration) {
        BuildMetaMethod buildMetaMethod = new BuildMetaMethod(classDefinition, statement, scope, modifiers, name,
            returnType, null, defParameters, throwsDeclaration);

        classDefinition.addMethod(buildMetaMethod);
        return ClassBuilderAbstractMethodOption.this;
      }
View Full Code Here

Examples of org.jboss.errai.codegen.framework.meta.impl.build.BuildMetaMethod

      @Override
      public ClassStructureBuilderAbstractMethodOption callback(final Statement statement,
                                                                final DefParameters parameters,
                                                                final DefModifiers modifiers,
                                                                final ThrowsDeclaration throwsDeclaration) {
        BuildMetaMethod buildMetaMethod = new BuildMetaMethod(classDefinition, statement, scope, modifiers, name,
            returnType, null, defParameters, throwsDeclaration);

        classDefinition.addMethod(buildMetaMethod);
        return ClassBuilderAbstractMethodOption.this;
      }
View Full Code Here

Examples of org.jboss.errai.codegen.framework.meta.impl.build.BuildMetaMethod

        }
        else {
          dParameters = defParameters;         
        }

        BuildMetaMethod buildMetaMethod = new BuildMetaMethod(classDefinition, statement, scope,
                modifiers, name, returnType, null, dParameters, throwsDeclaration);
        classDefinition.addMethod(buildMetaMethod);
        return (T) ClassBuilder.this;
      }
View Full Code Here

Examples of org.jboss.errai.codegen.framework.meta.impl.build.BuildMetaMethod

        }
        else {
          dParameters = defParameters;
        }

        BuildMetaMethod buildMetaMethod = new BuildMetaMethod(classDefinition, statement, scope,
                modifiers, name, returnType, null, dParameters, throwsDeclaration);

        classDefinition.addMethod(buildMetaMethod);
        return (T) ClassBuilder.this;
      }
View Full Code Here

Examples of org.jboss.errai.codegen.framework.meta.impl.build.BuildMetaMethod

        parameters.add(Parameter.of(parmType, parm.getName()));
        i++;
      }

      BuildMetaMethod newMethod = new ShadowBuildMetaMethod(buildMetaClass, EmptyStatement.INSTANCE,
              GenUtil.scopeOf(method), GenUtil.modifiersOf(method), method.getName(), returnType,
              method.getGenericReturnType(),
              DefParameters.fromParameters(parameters), ThrowsDeclaration.of(method.getCheckedExceptions()), method);

      newMethod.setReifiedFormOf(method);

      buildMetaClass.addMethod(newMethod);
    }

    return buildMetaClass;
View Full Code Here

Examples of org.jboss.errai.codegen.meta.impl.build.BuildMetaMethod

        parameters.add(Parameter.of(parmType, parm.getName()));
        i++;
      }

      final BuildMetaMethod newMethod = new ShadowBuildMetaMethod(buildMetaClass, BlockStatement.EMPTY_BLOCK,
          GenUtil.scopeOf(method), GenUtil.modifiersOf(method), method.getName(), returnType,
          DefParameters.fromParameters(parameters), ThrowsDeclaration.of(method.getCheckedExceptions()), method);

      newMethod.setReifiedFormOf(method);

      buildMetaClass.addMethod(newMethod);
    }

    return buildMetaClass;
View Full Code Here

Examples of org.jboss.errai.codegen.meta.impl.build.BuildMetaMethod

        }
        else {
          dParameters = defParameters;
        }

        final BuildMetaMethod buildMetaMethod = new BuildMetaMethod(classDefinition, statement, scope,
                modifiers, name, returnType, null, dParameters, throwsDeclaration);

        if (annotations != null) {
          buildMetaMethod.addAnnotations(annotations);
        }

        buildMetaMethod.setMethodComment(comment);
        classDefinition.addMethod(buildMetaMethod);
        return (T) ClassBuilder.this;
      }
    });
  }
View Full Code Here

Examples of org.jboss.errai.codegen.meta.impl.build.BuildMetaMethod

        parameters.add(Parameter.of(parmType, parm.getName()));
        i++;
      }

      final BuildMetaMethod newMethod = new ShadowBuildMetaMethod(buildMetaClass, BlockStatement.EMPTY_BLOCK,
          GenUtil.scopeOf(method), GenUtil.modifiersOf(method), method.getName(), returnType,
          DefParameters.fromParameters(parameters), ThrowsDeclaration.of(method.getCheckedExceptions()), method);

      newMethod.setReifiedFormOf(method);

      buildMetaClass.addMethod(newMethod);
    }

    return buildMetaClass;
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.