org.ow2.util.ee.deploy.impl.helper
Class DeployableDetectVisitor

java.lang.Object
  extended by org.ow2.util.asm.commons.EmptyVisitor
      extended by org.ow2.util.ee.deploy.impl.helper.DeployableDetectVisitor
All Implemented Interfaces:
org.ow2.util.asm.AnnotationVisitor, org.ow2.util.asm.ClassVisitor, org.ow2.util.asm.FieldVisitor, org.ow2.util.asm.MethodVisitor

public class DeployableDetectVisitor
extends org.ow2.util.asm.commons.EmptyVisitor

This visitor try to find the type of an archive.

Author:
Florent Benoit

Constructor Summary
DeployableDetectVisitor()
           
 
Method Summary
 org.ow2.util.ee.deploy.api.deployable.ArchiveType getArchiveType()
          Gets the archive type.
 org.ow2.util.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
          Visits an annotation of the class.
 
Methods inherited from class org.ow2.util.asm.commons.EmptyVisitor
visit, visit, visitAnnotation, visitAnnotationDefault, visitArray, visitAttribute, visitCode, visitEnd, visitEnum, visitField, visitFieldInsn, visitFrame, visitIincInsn, visitInnerClass, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethod, visitMethodInsn, visitMultiANewArrayInsn, visitOuterClass, visitParameterAnnotation, visitSource, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployableDetectVisitor

public DeployableDetectVisitor()
Method Detail

visitAnnotation

public org.ow2.util.asm.AnnotationVisitor visitAnnotation(String desc,
                                                          boolean visible)
Visits an annotation of the class.

Specified by:
visitAnnotation in interface org.ow2.util.asm.ClassVisitor
Specified by:
visitAnnotation in interface org.ow2.util.asm.FieldVisitor
Specified by:
visitAnnotation in interface org.ow2.util.asm.MethodVisitor
Overrides:
visitAnnotation in class org.ow2.util.asm.commons.EmptyVisitor
Parameters:
desc - the class descriptor of the annotation class.
visible - true if the annotation is visible at runtime.
Returns:
a non null visitor to visit the annotation values.

getArchiveType

public org.ow2.util.ee.deploy.api.deployable.ArchiveType getArchiveType()
Gets the archive type.

Returns:
the archive type.


Copyright © 2007-2011 OW2 Consortium. All Rights Reserved.