public class JavaMetadata extends AbstractJavaMetadata
| Modifier and Type | Method and Description |
|---|---|
List<ImportMetadata> |
getImports()
Gets a list of from the unit.
|
PackageMetadata |
getPackageMetadata()
Gets the
PackageMetadata from the unit. |
List<TypeMetadata> |
getTypeMetadata()
Gets the list for type declarations (class/interface/enum/annotation) of this unit.
|
static JavaMetadata |
instance(InputStream inputStream,
long length,
String encoding)
Creates a new instance of
JavaMetadata, that will be used to get informations of a compilation unit. |
createAnnotationMetadataFor, createImportMetadata, createPackageMetadata, createParameterizedFieldMetadataFrom, createTypeMetadata, getConstructorMetadataFrom, getFieldMetadataFrom, getFieldName, getMethodMetadataFrom, getMethodTypeMemberMetadataFrom, processArrayTypeFrom, processModifiersOfFieldDeclaration, processModifiersOfMethodDeclaration, processModifiersOfTypeDeclaration, processParameterizedType, processParametersOfMethodDeclaration, processPrimitiveType, processReturnTypeOfMethodDeclaration, processSimpleType, processVariablesOfVariableDeclarationFragmentpublic static JavaMetadata instance(InputStream inputStream, long length, String encoding) throws IOException
JavaMetadata, that will be used to get informations of a compilation unit.inputStream - - the InputStream in our case a FileInputStream of the java file.length - - the length of the java file.encoding - - the encoding that can be used.JavaMetadataIOException - if the input stream cannot be parsedFile.length()public final PackageMetadata getPackageMetadata()
PackageMetadata from the unit.public List<ImportMetadata> getImports()
public List<TypeMetadata> getTypeMetadata()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.