com.caucho.loader.enhancer
Class AbstractScanClass

java.lang.Object
  extended by com.caucho.loader.enhancer.AbstractScanClass
All Implemented Interfaces:
ScanClass
Direct Known Subclasses:
ScanClassAllow

@Module
public class AbstractScanClass
extends java.lang.Object
implements ScanClass

Interface for a scanned class.


Constructor Summary
AbstractScanClass()
           
 
Method Summary
 void addClassAnnotation(char[] buffer, int offset, int length)
          Adds a class annotation
 void addInterface(char[] buffer, int offset, int length)
          Adds interface information to the scan class.
 void addPoolString(char[] buffer, int offset, int length)
          Adds a pool string of the form "L...;" to test for annotations.
 void addSuperClass(char[] buffer, int offset, int length)
          Adds the superclass information to the scan class.
 boolean finishScan()
          Complete scan processing.
protected  boolean isMatch(char[] bufferA, int offset, int length, char[] bufferB)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractScanClass

public AbstractScanClass()
Method Detail

addSuperClass

public void addSuperClass(char[] buffer,
                          int offset,
                          int length)
Adds the superclass information to the scan class.

Specified by:
addSuperClass in interface ScanClass

addInterface

public void addInterface(char[] buffer,
                         int offset,
                         int length)
Adds interface information to the scan class.

Specified by:
addInterface in interface ScanClass

addClassAnnotation

public void addClassAnnotation(char[] buffer,
                               int offset,
                               int length)
Adds a class annotation

Specified by:
addClassAnnotation in interface ScanClass

addPoolString

public void addPoolString(char[] buffer,
                          int offset,
                          int length)
Adds a pool string of the form "L...;" to test for annotations.

Specified by:
addPoolString in interface ScanClass

finishScan

public boolean finishScan()
Complete scan processing.

Specified by:
finishScan in interface ScanClass

isMatch

protected final boolean isMatch(char[] bufferA,
                                int offset,
                                int length,
                                char[] bufferB)