|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.sequencer.javafile.AbstractJavaMetadata
org.modeshape.sequencer.javafile.metadata.JavaMetadata
public class JavaMetadata
Metadata for a Java source file.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public 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.
JavaMetadata
IOException
- if the input stream cannot be parsedFile.length()
public final PackageMetadata getPackageMetadata()
PackageMetadata
from the unit.
public List<ImportMetadata> getImports()
public List<TypeMetadata> getTypeMetadata()
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |