Package com.google.gag.instrument
Class ClassGenerator
- java.lang.Object
-
- org.objectweb.asm.ClassAdapter
-
- com.google.gag.instrument.ClassGenerator
-
- All Implemented Interfaces:
org.objectweb.asm.ClassVisitor
- Direct Known Subclasses:
AnswerToLifeGenerator,HackGenerator,NoopGenerator,RouletteGenerator,ThisHadBetterGenerator
public abstract class ClassGenerator extends org.objectweb.asm.ClassAdapter
-
-
Constructor Summary
Constructors Constructor Description ClassGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleancanInstrument(ClassInfo classInfo)protected ClassInfoclassInfo()protected booleanhasInstrumented()Returns true if thisClassGeneratorhas instrumented the class bytes as a result of visiting the class.protected voidsetInstrumented(boolean instrumented)protected org.objectweb.asm.ClassWriterwriter()
-
-
-
Method Detail
-
canInstrument
protected abstract boolean canInstrument(ClassInfo classInfo)
-
writer
protected org.objectweb.asm.ClassWriter writer()
-
classInfo
protected ClassInfo classInfo()
-
setInstrumented
protected void setInstrumented(boolean instrumented)
-
hasInstrumented
protected boolean hasInstrumented()
Returns true if thisClassGeneratorhas instrumented the class bytes as a result of visiting the class.
-
-