Modifier and Type | Field and Description |
---|---|
String |
classFQN
The fully qualified name.
|
int |
flags
Flags.
|
String |
packageFQN
The package fully qualified name.
|
IType |
type
The Java element.
|
Modifier and Type | Method and Description |
---|---|
String |
canInstantiate()
Checks if this class can be instantiated for iizi with default constructor.
|
String |
checkAnnotation(String annotationFQN,
String param,
String value)
Checks the annotation for optional parameter value.
|
IzTypeDeclaration |
clone()
Clones the instance.
|
void |
getAvailableMethods(ArrayList<String> list,
IType clazz,
String instanceAnnotation,
String staticAnnotation)
Gets the list of methods that can match the specified annotations.
|
String |
getClassNameNoPackage()
Gets the class name without package.
|
ArrayList<IzMethodDeclaration> |
getMethods(boolean isStatic,
String annotation)
Gets the public methods that match the annotation (if present).
|
boolean |
hasAnnotation(String annotationFQN)
Checks if method is annotation by the fully qualified annotation name.
|
boolean |
hasMethod(String methodName)
Checks if a method name is present without checking signatures, etc.
|
boolean |
implementsInterface(String interfaceFQN)
Checks if method is annotation by the fully qualified annotation name.
|
public final String classFQN
public final String packageFQN
public final int flags
public final IType type
public IzTypeDeclaration clone()
public String canInstantiate()
public boolean hasAnnotation(String annotationFQN)
public boolean implementsInterface(String interfaceFQN)
public String checkAnnotation(String annotationFQN, String param, String value)
public String getClassNameNoPackage()
public ArrayList<IzMethodDeclaration> getMethods(boolean isStatic, String annotation)
annotation
- The annotation required or null for none.public void getAvailableMethods(ArrayList<String> list, IType clazz, String instanceAnnotation, String staticAnnotation)
list
- List filled in with info upon return.clazz
- The class to search in for the instanceAnnotation
.instanceAnnotation
- The instance annotation to search the class for, null for none.staticAnnotation
- Static annotation to search classes for static methods.public boolean hasMethod(String methodName)
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.