| |
|
| java.lang.Object tide.syntaxtree.ProblemsSearch
ProblemsSearch | final public class ProblemsSearch (Code) | | Scans tree parts and look for problems !
Important: only detect problems not detected by the compiler (1.6)
for example public classes names should be the name of the file => already checked by the compiler
|
Method Summary | |
public static void | analyseClass(SimplifiedSyntaxTree2 st, ClassNode cn) class or interface problem analysis. | public static void | analyseFile(SimplifiedSyntaxTree2 st, String javaName) checks
1) public type name according to file name
2) package name according to file structure
3) package name lowercase
remark: some checks and warnings are already made and added in the SimplifiedSyntaxTree. | public static boolean | isEmptyPackage(FileItem ti) The compiler is (sometimes) not happy when importing empty packages. |
detectClassNameCase | public static boolean detectClassNameCase(Code) | | |
detectEmptyClass | public static boolean detectEmptyClass(Code) | | |
detectEmptyPackageImport | public static boolean detectEmptyPackageImport(Code) | | |
detectFalsePublicName | public static boolean detectFalsePublicName(Code) | | |
detectFieldWithSameNameAsClass | public static boolean detectFieldWithSameNameAsClass(Code) | | |
detectMethodNameCase | public static boolean detectMethodNameCase(Code) | | |
detectMethodsWithSameNameAsClass | public static boolean detectMethodsWithSameNameAsClass(Code) | | |
detectMultiplePublicTopLevelTypes | public static boolean detectMultiplePublicTopLevelTypes(Code) | | |
detectNoPublicTopLevelType | public static boolean detectNoPublicTopLevelType(Code) | | |
detectPagkageNameCase | public static boolean detectPagkageNameCase(Code) | | |
detectUnusefulSemicolons | public static boolean detectUnusefulSemicolons(Code) | | |
detectWrongPagkageName | public static boolean detectWrongPagkageName(Code) | | |
analyseClass | public static void analyseClass(SimplifiedSyntaxTree2 st, ClassNode cn)(Code) | | class or interface problem analysis.
Only called when the checkbox "enable parser warnings" is on.
|
analyseFile | public static void analyseFile(SimplifiedSyntaxTree2 st, String javaName)(Code) | | checks
1) public type name according to file name
2) package name according to file structure
3) package name lowercase
remark: some checks and warnings are already made and added in the SimplifiedSyntaxTree.
Parameters: javaName - is aprioriJavaName, based on the filename |
isEmptyPackage | public static boolean isEmptyPackage(FileItem ti)(Code) | | The compiler is (sometimes) not happy when importing empty packages.
|
|
|
|