public class TypeNameFactory extends Object
| Constructor and Description |
|---|
TypeNameFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TypeName |
fromDescriptor(String descriptor)
Constructs a type name from a field descriptor.
|
static TypeName |
fromIdentifier(String name)
Constructs a type name from its identifier representation.
|
static TypeName |
fromPath(String path)
Converts a type name from its file path.
|
public static TypeName fromIdentifier(String name)
name - the type nameIllegalArgumentException - if name is nullpublic static TypeName fromPath(String path)
path - the file pathIllegalArgumentException - if path is nullpublic static TypeName fromDescriptor(String descriptor) throws IllegalArgumentException
descriptor - the field descriptorIllegalArgumentException - if descriptor is nullhttp://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#14152Copyright © 2012. All Rights Reserved.