Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove the samples

  • Loading branch information...
commit 70c2d3d797f894da6f0f7b4c11e11794b0b66cab 1 parent 82406c0
@Dinduks authored
View
41 src/main/scala/com/dindane/mireille/samples/ClassPrinter.scala
@@ -1,41 +0,0 @@
-package com.dindane.mireille.samples
-
-import org.objectweb.asm._
-
-class ClassPrinter extends ClassVisitor(Opcodes.ASM4) {
-
- override def visit(version: Int, access: Int, name: String, signature: String, superName: String, interfaces: Array[String]) {
- println(name + " extends " + superName + " {")
- }
-
- override def visitSource(source: String, debug: String) {
- }
-
- override def visitOuterClass(owner: String, name: String, desc: String) {
- }
-
- override def visitAnnotation(desc: String, visible: Boolean): AnnotationVisitor = {
- return null
- }
-
- override def visitAttribute(attr: Attribute) {
- }
-
- override def visitInnerClass(name: String, outerName: String, innerName: String, access: Int) {
- }
-
- override def visitField(access: Int, name: String, desc: String, signature: String, value: Any): FieldVisitor = {
- println(" " + desc + " " + name)
- return null
- }
-
- override def visitMethod(access: Int, name: String, desc: String, signature: String, exceptions: Array[String]): MethodVisitor = {
- println(" " + name + desc)
- return null
- }
-
- override def visitEnd {
- println("}")
- }
-
-}
View
13 src/main/scala/com/dindane/mireille/samples/Samples.scala
@@ -1,13 +0,0 @@
-package com.dindane.mireille.samples
-
-import org.objectweb.asm.ClassReader
-
-object Samples {
-
- def basicParsingExample() {
- val classPrinter: ClassPrinter = new ClassPrinter
- val classReader: ClassReader = new ClassReader("java.lang.Runnable");
- classReader.accept(classPrinter, 0);
- }
-
-}

0 comments on commit 70c2d3d

Please sign in to comment.
Something went wrong with that request. Please try again.