Examples of visit()


Examples of org.ow2.asm.ClassWriter.visit()

    public byte[] dump() {
        ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
        FieldVisitor fv;
        MethodVisitor mv;

        cw.visit(V1_4,
                ACC_PUBLIC + ACC_SUPER + ACC_DEPRECATED,
                "pkg/Outer",
                null,
                "java/lang/Object",
                null);
View Full Code Here

Examples of org.ow2.easybeans.asm.AnnotationVisitor.visit()

     * @param methodVisitor the given method visitor
     */
    public static void addAnnotationsOnGeneratedMethod(final MethodVisitor methodVisitor) {
        // This method shouldn't be included as a JAX-WS WebMethod.
        AnnotationVisitor annotationVisitor = methodVisitor.visitAnnotation("Ljavax/jws/WebMethod;", true);
        annotationVisitor.visit("exclude", Boolean.TRUE);
        annotationVisitor.visitEnd();
    }


}
View Full Code Here

Examples of org.ow2.easybeans.asm.ClassWriter.visit()

     */
    public static byte[] getByteForClass(final String className, final String helloWorldString) throws Exception {

        ClassWriter cw = new ClassWriter(0);
        MethodVisitor mv;
        cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, className, null, "java/lang/Object", null);

        // Constructor
        mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
        mv.visitCode();
        mv.visitVarInsn(ALOAD, 0);
View Full Code Here

Examples of org.picocontainer.classname.DefaultClassLoadingPicoContainer.visit()

        ClassLoader currentClassLoader = this.getClass().getClassLoader();
        final DefaultClassLoadingPicoContainer pageObjects = new DefaultClassLoadingPicoContainer(currentClassLoader,
                store, primordial);
        pageObjects.change(Characteristics.USE_NAMES);
        // This loads all the Groovy page objects - can be stateful
        pageObjects.visit(new ClassName("pages.Home"), ".*\\.class", true,
                new DefaultClassLoadingPicoContainer.ClassVisitor() {
                    public void classFound(@SuppressWarnings("rawtypes") Class clazz) {
                        pageObjects.addComponent(clazz);
                    }
                });
View Full Code Here

Examples of org.python.indexer.ast.NModule.visit()

    public List<StyleRun> addStyles(String path, String src) throws Exception {
        this.path = path;
        source = src;
        NModule m = indexer.getAstForFile(path);
        if (m != null) {
            m.visit(this);
            highlightLexicalTokens();
        }
        return styles;
    }
View Full Code Here

Examples of org.springframework.asm.ClassWriter.visit()

    private static byte[] generateByteCodeForInterface(final String interfaceName, Class<?>... interfacesToImplement) {

      String interfaceResourcePath = ClassUtils.convertClassNameToResourcePath(interfaceName);

      ClassWriter cw = new ClassWriter(0);
      cw.visit(V1_6, ACC_PUBLIC + ACC_ABSTRACT + ACC_INTERFACE, interfaceResourcePath, null, "java/lang/Object",
          toResourcePaths(interfacesToImplement));
      cw.visitSource(interfaceResourcePath + ".java", null);
      cw.visitEnd();

      return cw.toByteArray();
View Full Code Here

Examples of org.teiid.translator.salesforce.execution.visitors.InsertVisitor.visit()

  @Override
  public void execute() throws TranslatorException {
    try {
      InsertVisitor visitor = new InsertVisitor(getMetadata());
      visitor.visit((Insert)command);
      DataPayload data = new DataPayload();
      data.setType(visitor.getTableName());
      data.setMessageElements(visitor.getMessageElements());
      result = getConnection().create(data);
    } catch (ResourceException e) {
View Full Code Here

Examples of org.teiid.translator.salesforce.execution.visitors.UpdateVisitor.visit()

  @SuppressWarnings("unchecked")
  @Override
  public void execute() throws TranslatorException {
    UpdateVisitor visitor = new UpdateVisitor(getMetadata());
    visitor.visit((Update)command);
    String[] Ids = getIDs(((Update)command).getWhere(), visitor);

    if (null != Ids && Ids.length > 0) {
      List<JAXBElement> elements = new ArrayList<JAXBElement>();
      for (SetClause clause : ((Update)command).getChanges()) {
View Full Code Here

Examples of org.topbraid.spin.model.visitor.ElementWalker.visit()

  setSubSelect(null); // clear any previously found sub-SELECTs
 
  if (getWhere() != null)
  {
      ElementWalker walker = new ElementWalker(getElementVisitor(), null);
      walker.visit(getWhere());
     
      if (getSubSelect() != null)
      {
    if (log.isTraceEnabled()) log.trace("Found sub-SELECT: {}", getSubSelect());
    return SelectBuilder.fromSelect(getSubSelect());
View Full Code Here

Examples of org.wikier.trioo.jtrioo.generators.ConstructQueryGenerator.visit()

    RDFMetaResource metaResource = this.session.getMetaRDFResource(cls);
    if (metaResource == null) {
      return JenaHelper.createModel();
    } else {
      ConstructQueryGenerator cqg = QueryGeneratorFactory.createConstructQueryGenerator();
      cqg.visit(metaResource);
      QueryCodeGenerator qcg = new QueryCodeGenerator();
      qcg.visit(cqg.getQuery());
      QueryExecutor qe = this.session.getQueryExecutor();
      return qe.execConstruct(qcg.toString());
    }
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.