com.springsource.bundlor.internal.asm
Class VisitorUtils

java.lang.Object
  extended by com.springsource.bundlor.internal.asm.VisitorUtils

final class VisitorUtils
extends java.lang.Object

Concurrent Semantics
Threadsafe.

Author:
Rob Harrop

Constructor Summary
VisitorUtils()
           
 
Method Summary
static java.lang.String getFullyQualifiedTypeName(org.objectweb.asm.Type type)
           
static java.lang.String getPackageName(org.objectweb.asm.Type type)
          Gets the package name from the supplied Type.
static void recordReferencedTypes(PartialManifest partialManifest, org.objectweb.asm.Type... types)
          Records the supplied Types in the supplied PartialManifest.
static void recordUses(PartialManifest partialManifest, org.objectweb.asm.Type exportingType, org.objectweb.asm.Type... types)
          Records a uses of the packages for the supplied Types against the supplied exportingPackage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisitorUtils

VisitorUtils()
Method Detail

getPackageName

public static java.lang.String getPackageName(org.objectweb.asm.Type type)
Gets the package name from the supplied Type.

Parameters:
type - the Type.
Returns:
the package name.

getFullyQualifiedTypeName

public static java.lang.String getFullyQualifiedTypeName(org.objectweb.asm.Type type)

recordReferencedTypes

public static void recordReferencedTypes(PartialManifest partialManifest,
                                         org.objectweb.asm.Type... types)
Records the supplied Types in the supplied PartialManifest.

Parameters:
partialManifest - the PartialManifest.
types - the Types.

recordUses

public static void recordUses(PartialManifest partialManifest,
                              org.objectweb.asm.Type exportingType,
                              org.objectweb.asm.Type... types)
Records a uses of the packages for the supplied Types against the supplied exportingPackage.

Parameters:
partialManifest - the PartialManifest.
exportingType - the exporting type.
types - the Types.