Class AsmDecompiler
- java.lang.Object
-
- org.codehaus.groovy.ast.decompiled.AsmDecompiler
-
-
Constructor Summary
Constructors Constructor Description AsmDecompiler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassStub
parseClass(URL url)
Loads the URL contents and parses them with ASM, producing aClassStub
object representing the structure of the corresponding class file.
-
-
-
Method Detail
-
parseClass
public static ClassStub parseClass(URL url) throws IOException
Loads the URL contents and parses them with ASM, producing aClassStub
object representing the structure of the corresponding class file. Stubs are cached and reused if queried several times with equal URLs.- Parameters:
url
- an URL from a class loader, most likely a file system file or a JAR entry.- Returns:
- the class stub
- Throws:
IOException
- if reading from this URL is impossible
-
-