public interface JavaType<T extends JavaType<T>> extends Packaged<T>, Named, VisibilityScoped, AnnotationTarget<T>, Origin<T>, JavaDocCapable<T>
| Modifier and Type | Method and Description |
|---|---|
String |
getCanonicalName()
Return the canonical name of this
T instance. |
JavaType<?> |
getEnclosingType()
Return the enclosing
JavaType type in which this class is defined. |
String |
getQualifiedName()
Get the qualified-name of this
T instance, where the qualified-name contains both the Java package and
simple class name of the type represented by this T instance. |
List<SyntaxError> |
getSyntaxErrors()
Get a list of all
SyntaxErrors detected in the current T. |
boolean |
hasSyntaxErrors()
Return whether or not this
T currently has any SyntaxError s. |
boolean |
isAnnotation()
|
boolean |
isClass()
|
boolean |
isEnum()
|
boolean |
isInterface()
|
String |
toUnformattedString()
Return the generated code without any formatting.
|
getPackage, isDefaultPackagegetVisibility, isPackagePrivate, isPrivate, isProtected, isPublicgetAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotationgetInternalgetJavaDoc, hasJavaDocString getCanonicalName()
T instance. This is equivalent to calling
Class.getCanonicalName()String getQualifiedName()
T instance, where the qualified-name contains both the Java package and
simple class name of the type represented by this T instance.
For example, calling: getQualifiedName() is equivalent to calling "Packaged.getPackage()
+ "." + Named.getName()", which in turn is equivalent to calling: Class.getName()List<SyntaxError> getSyntaxErrors()
SyntaxErrors detected in the current T. Note that when errors are present, the
class may still be modified, but changes may not be completely accurate.boolean hasSyntaxErrors()
T currently has any SyntaxError s.boolean isClass()
boolean isEnum()
boolean isInterface()
boolean isAnnotation()
JavaType<?> getEnclosingType()
JavaType type in which this class is defined. If this class is a top-level type, and
is not a nested type, this object will return itself.String toUnformattedString()
Copyright © 2016 JBoss by Red Hat. All rights reserved.