Package com.iizigo.java.parser.type
Class IzTypeDeclaration
java.lang.Object
com.iizigo.java.parser.type.IzTypeDeclaration
- All Implemented Interfaces:
Cloneable
A type declaration for a class or interface.
- Author:
- Christopher Mindus
Field Summary
FieldsMethod Summary
Modifier and TypeMethodDescriptionChecks if this class can be instantiated for IIZI with default constructor.checkAnnotation(String annotationFQN, String param, String value) Checks the annotation for optional parameter value.clone()Clones the instance.voidgetAvailableMethods(ArrayList<String> list, IType clazz, String instanceAnnotation, String staticAnnotation) Gets the list of methods that can match the specified annotations.Gets the class name without package.getMethods(boolean isStatic, String annotation) Gets the public methods that match the annotation (if present).booleanhasAnnotation(String annotationFQN) Checks if method is annotation by the fully qualified annotation name.booleanChecks if a method name is present without checking signatures, etc.booleanimplementsInterface(String interfaceFQN) Checks if method is annotation by the fully qualified annotation name.
Field Details
classFQN
The fully qualified name.packageFQN
The package fully qualified name.flags
public final int flagsFlags.type
The Java element.
Method Details
clone
Clones the instance.canInstantiate
Checks if this class can be instantiated for IIZI with default constructor.- Returns:
- null for OK, otherwise an error.
hasAnnotation
Checks if method is annotation by the fully qualified annotation name.implementsInterface
Checks if method is annotation by the fully qualified annotation name.checkAnnotation
Checks the annotation for optional parameter value.getClassNameNoPackage
Gets the class name without package.getMethods
Gets the public methods that match the annotation (if present).- Parameters:
annotation- The annotation required or null for none.- Returns:
- A new array with matching methods.
getAvailableMethods
public void getAvailableMethods(ArrayList<String> list, IType clazz, String instanceAnnotation, String staticAnnotation) Gets the list of methods that can match the specified annotations.- Parameters:
list- List filled in with info upon return.clazz- The class to search in for theinstanceAnnotation.instanceAnnotation- The instance annotation to search the class for, null for none.staticAnnotation- Static annotation to search classes for static methods.
hasMethod
Checks if a method name is present without checking signatures, etc.