public class JavaParserUtil extends Object
JavaParserUtil class provides helper functions for generating parsed inputs| Constructor and Description |
|---|
JavaParserUtil() |
| Modifier and Type | Method and Description |
|---|---|
static com.thoughtworks.qdox.model.JavaClass |
getFirstJavaClass(ClassLoader classLoader,
Reader... reader)
Returns the first
JavaClass parsed by the given Reader, all upcoming parsed java files
will be added to the class library. |
static com.thoughtworks.qdox.model.JavaClass |
getFirstJavaClass(Reader... reader)
Returns the first
JavaClass parsed by the given Reader, all upcoming parsed java files
will be added to the class library |
static String |
resolveToSimpleType(String canonicalType)
Converts the String representation of a canonical type into a String which represents the simple type.
|
public static com.thoughtworks.qdox.model.JavaClass getFirstJavaClass(Reader... reader)
JavaClass parsed by the given Reader, all upcoming parsed java files
will be added to the class libraryreader - Readers which contents should be parsedJavaClasspublic static com.thoughtworks.qdox.model.JavaClass getFirstJavaClass(ClassLoader classLoader, Reader... reader)
JavaClass parsed by the given Reader, all upcoming parsed java files
will be added to the class library. By passing a ClassLoader, you can take impact on the class
name resolvingclassLoader - which should be used for class name resolvingreader - Readers which contents should be parsedJavaClasspublic static String resolveToSimpleType(String canonicalType)
java.lang.String is converted into Stringjava.util.List<java.lang.String> is converted into
List<String>canonicalType - the String representation of the canonical type to be resolvedCopyright © 2018 DevonFw. All rights reserved.