com.nerdvision.agent.inst.SetClassScanner Maven / Gradle / Ivy
package com.nerdvision.agent.inst;
import com.nerdvision.agent.Utils;
import java.util.Set;
public class SetClassScanner implements IClassScanner
{
private final Set classNames;
public SetClassScanner( final Set classNames )
{
this.classNames = classNames;
}
@Override
public boolean scanClass( final Class> allLoadedClass )
{
return this.classNames.contains( Utils.internalClass( allLoadedClass ) ) ||
allLoadedClass.getName().contains( "$" ) &&
this.classNames.contains( Utils.internalClassStripInner( allLoadedClass ) );
}
}