Package org.objectweb.asm.commons

Examples of org.objectweb.asm.commons.EmptyVisitor



  public AnnotationVisitor visitAnnotation(final String desc, boolean visible) {
    final String className = Type.getType(desc).getClassName();
    final Map<String, Object> attributes = new LinkedHashMap<String, Object>();
    return new EmptyVisitor() {
      public void visit(String name, Object value) {
        attributes.put(name, value);
      }
      public void visitEnd() {
        try {
View Full Code Here



  public AnnotationVisitor visitAnnotation(final String desc, boolean visible) {
    final String className = Type.getType(desc).getClassName();
    final Map<String, Object> attributes = new LinkedHashMap<String, Object>();
    return new EmptyVisitor() {
      public void visit(String name, Object value) {
        // Explicitly defined annotation attribute value.
        attributes.put(name, value);
      }
      public void visitEnd() {
View Full Code Here

          }
          infos.add(info);
          info.setCompliance(true);
          return new AnnotationDefVisitor(grepClient, annotationInfo);
    }else{
      return new EmptyVisitor();
    }
  }
View Full Code Here

              fieldGrep.getAnnotatedFieldMap().put(annotationInfo.getName(), infos);
          }
          infos.add(info);
          return new AnnotationDefVisitor(grepClient, annotationInfo);
    }else{
      return new EmptyVisitor();
    }
  }
View Full Code Here

              annotationGrep.getAnnotatedAnnotationMap().put(annotationInfo.getName(), infos);
          }
          infos.add(info);
          return new AnnotationDefVisitor(grepClient, annotationInfo);
    }else{
      return new EmptyVisitor();
    }
  }
View Full Code Here

              methodGrep.getAnnotatedMethodInfoMap().put(annotationInfo.getName(), infos);
          }
          infos.add(info);
          return new AnnotationDefVisitor(grepClient, annotationInfo);
    }else{
      return new EmptyVisitor();
    }
  }
View Full Code Here

   */
  private void retrieveInvokeInfos(){
    final Map<String, List<LocalVariableSignature>> allVarSigns = new HashMap<String, List<LocalVariableSignature>>();
      ClassVisitor localVarVisitor = new AllMethodLocalVarInfoFetchVisitor(allVarSigns);
      reader.accept(localVarVisitor, ClassReader.SKIP_DEBUG);
      reader.accept(new EmptyVisitor(){
         
          Type classType;

        @Override
        public void visit(int version, int access, String name,
View Full Code Here

      return true;
    }
   
    final boolean[] exist = new boolean[]{false};
   
    ClassVisitor cv = new EmptyVisitor(){
      @Override
      public MethodVisitor visitMethod(int access, String name,
          String desc, String signature, String[] exceptions) {
        if(name.equals(ASConstant.CLINIT)){
          exist[0] = true;
View Full Code Here

    final AClass owner = AClassFactory.getProductClass(clazz);
    InputStream classStream = ASMClassLoader.asmClassLoader.getResourceAsStream(clazz.getName().replace('.', '/') + ".class");
    ClassReader cr = new ClassReader(classStream);
    final List<MethodEntity> list = new ArrayList<MethodEntity>();
   
    cr.accept(new ClassAdapter(new EmptyVisitor()){

      @Override
      public MethodVisitor visitMethod(int access, String name,
          String desc, String signature, String[] exceptions) {
        if((StringUtils.isEmpty(findName) || name.equals(findName))){
View Full Code Here

                PersistenceContextVisitor visitor = new PersistenceContextVisitor(className, currentName);
                return visitor;
            } else if ("Ljavax/persistence/PersistenceContexts;".equals(desc)) {
                return this;
            }
            return new EmptyVisitor();
        }
View Full Code Here

TOP

Related Classes of org.objectweb.asm.commons.EmptyVisitor

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.