Package com.iizigo.java
Class JavaClass
java.lang.Object
com.iizigo.java.JavaClass
The Java Class holds listeners to changes, performs class validation and is hooked into Eclipse Refactoring via its owner 
ModuleClasses.- Method SummaryModifier and TypeMethodDescriptionGets the fully qualified class name.Gets the file resource.- getType()Gets the JDT IType of the class..Get the type declaration of this Java class.- booleanChecks if class reference disposed of.- booleanChecks if this reference is correct in terms of location and parsing, or if it needs to be renewed to get a new type (change from unresolved to parsed, or vice versa).- booleanChecks if this class is resolved.- void- onDispose- (IClassReferenceListener listener) Called when a reference holder, the- IClassReferenceListener, has been disposed of.- void- onQuery- (EditorClassReference ref, GEvent event) Called when the property receives a- GEvent.PROP_QUERY_DESIGNER_PROPSevent.- void- onQuery- (EditorMethodReference2 ref, GEvent event) Called when the property receives a- GEvent.PROP_QUERY_DESIGNER_PROPSevent.- void- onQuery- (EditorMethodReference ref, GEvent event) Called when the property receives a- GEvent.PROP_QUERY_DESIGNER_PROPSevent.- void- resolve- (IClassReferenceListener listener) Resolves any references.- voidDo for trigger SWT for async change.- validateMethod- (String method, boolean isStatic, String requiredAnnotation, String annotationParam, String annotationValue, boolean allowAll) Validates the method for the annotation.
- Method Details- onQueryCalled when the property receives a- GEvent.PROP_QUERY_DESIGNER_PROPSevent.- Parameters:
- ref- The Class Reference instance.
- event- The event.
 
- onQueryCalled when the property receives a- GEvent.PROP_QUERY_DESIGNER_PROPSevent.- Parameters:
- ref- The Method Reference instance.
- event- The event.
 
- onQueryCalled when the property receives a- GEvent.PROP_QUERY_DESIGNER_PROPSevent.- Parameters:
- ref- The Method Reference instance.
- event- The event.
 
- onDisposeCalled when a reference holder, the- IClassReferenceListener, has been disposed of.- Parameters:
- listener- The listener.
 
- getJavaSourceGets the file resource.- Returns:
- The file, or null if not yet assigned.
 
- getClassNameGets the fully qualified class name.
- isRenewReferenceRequiredpublic boolean isRenewReferenceRequired()Checks if this reference is correct in terms of location and parsing, or if it needs to be renewed to get a new type (change from unresolved to parsed, or vice versa).- Returns:
- true If this Java source is currently not parsed and the current type is found to be parsed, or if reference instance is disposed of.
 
- getTypeGets the JDT IType of the class..- Returns:
- The type, or null if class has been removed.
 
- isDisposedpublic boolean isDisposed()Checks if class reference disposed of.
- isResolvedpublic boolean isResolved()Checks if this class is resolved. Checking for implementing interface or annotation is not done.- Returns:
- true if resolved, false otherwise.
 
- resolveResolves any references. The class reference should respond to the listener with a notification of "found" or "error".
- validateMethodpublic MethodLookup validateMethod- (String method, boolean isStatic, String requiredAnnotation, String annotationParam, String annotationValue, boolean allowAll) Validates the method for the annotation.- Parameters:
- method- The method name.
- isStatic- Method must be static flag.
- requiredAnnotation- The required annotation, or null for none.
- annotationParam- Parameter member value pair to verify the value with for back-referencing, null for none.
- annotationValue- The value to match for back-referencing, null for none.
- allowAll- Flag to allow a ref "*" as back-reference.
- Returns:
- The method look-up instance.
 
- triggerSWTChangeEventpublic void triggerSWTChangeEvent()Do for trigger SWT for async change.
- getTypeDeclarationGet the type declaration of this Java class.