| java.lang.Object org.netbeans.modules.visualweb.insync.beans.BeanStructureScanner
All known Subclasses: org.netbeans.modules.visualweb.insync.faces.ReefFacesBeanStructureScanner, org.netbeans.modules.visualweb.insync.faces.ThresherFacesBeanStructureScanner,
BeanStructureScanner | public class BeanStructureScanner (Code) | | Manage the methods, fields and such that should be defined for the bean described by my model.
author: eric |
Inner Class :public class MethodInfo | |
ctorInfo | protected MethodInfo ctorInfo(Code) | | |
destroyInfo | protected MethodInfo destroyInfo(Code) | | |
explicitImport | protected boolean explicitImport(Code) | | |
propertiesInitInfo | protected MethodInfo propertiesInitInfo(Code) | | |
propertyRegionInsertPosition | protected Object propertyRegionInsertPosition(Code) | | |
addXRefAccessor | public void addXRefAccessor(String bname, String type)(Code) | | Ensures that a cross-reference accessor to a sibling bean is in place. Accessor method is of
the form:
public get() {
return () getBean("");
}
Parameters: bname - Parameters: type - |
ensureEventMethod | public EventMethod ensureEventMethod(MethodDescriptor md, String name, String defaultBody, String[] parameterNames, String[] requiredImports)(Code) | | Add as needed an event method with a given name and event type, and return type. Do nothing
if the method is already present.
Parameters: md - The MethodDescriptor that identifies the method signature+return. Parameters: name - The name of the metod to find or create. Parameters: defaultBody - The default body to be inserted for the event if one does notalready exist, or null to get a generic comment body Parameters: parameterNames - An array of names to be used for the parameters, or nullto use a default algorithm which will derive names from the types Parameters: requiredImports - An array of classes to be imported, or null to import nothing The existing or newly created method. |
ensureImportForType | public void ensureImportForType(String type)(Code) | | Use the junit method to enure that we have an import for this type so that
the identifier can use its short form. By default explicit imports are ensured
Parameters: type - fully-qualified type name |
ensureInitBlock | protected void ensureInitBlock(MethodInfo mi)(Code) | | |
ensureMethods | protected void ensureMethods()(Code) | | Return the last method added.
|
ensurePropertyRegion | protected Object ensurePropertyRegion()(Code) | | TODO: We need to change how this region is created.
|
findXRefAccessor | protected Method findXRefAccessor(String name)(Code) | | Finds a possibly existing cross-reference accessor to a sibling bean
|
getConstructorMethod | public Method getConstructorMethod()(Code) | | |
getMethodInfos | protected MethodInfo[] getMethodInfos()(Code) | | |
getPropertiesInitMethod | public Method getPropertiesInitMethod()(Code) | | |
getSuggestedThisClassSuperclass | public String getSuggestedThisClassSuperclass()(Code) | | |
getThisClassComment | public String getThisClassComment()(Code) | | |
removeXRefAccessor | public void removeXRefAccessor(String name)(Code) | | Parameters: name - |
|
|