public class JavaMetadataUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
expressionString(org.eclipse.jdt.core.dom.Expression expression) |
static char[] |
getJavaSourceFromTheInputStream(InputStream inputStream,
long length,
String encoding)
Gets Java source from the
InputStream . |
static String |
getName(org.eclipse.jdt.core.dom.Name name)
Get the fully qualified name from the
Name . |
static long |
length(InputStream stream)
Get the length of the input stream.
|
public static long length(InputStream stream) throws IOException
stream
- - the InputStream
IOException
- - exceptional situation during calculating the length.public static char[] getJavaSourceFromTheInputStream(InputStream inputStream, long length, String encoding) throws IOException
InputStream
.inputStream
- - the FileInputStream
.length
- - the length of the java file.encoding
- - the encoding of the source, if there is one.IOException
- - exceptional error can be thrown during the reading of the file.public static String getName(org.eclipse.jdt.core.dom.Name name)
Name
.name
- - the name to process.public static String expressionString(org.eclipse.jdt.core.dom.Expression expression)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.