Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mijava
Class Validator  view Validator download Validator.java

java.lang.Object
  extended bymijava.Validator

class Validator
extends java.lang.Object


Nested Class Summary
private  class Validator.InterfaceValidator
           
private  class Validator.MIClassValidator
           
 
Field Summary
private static java.lang.String _ID_
           
private  MIJavaCompiler.Result compileResult
           
private  java.lang.String fileName
           
private  Parser.Result parseResult
           
 
Constructor Summary
private Validator(Parser.Result parseResult, java.lang.String fileName, MIJavaCompiler.Result compileResult)
           
 
Method Summary
private  void displayError(DiffString ds, int pos, java.lang.String message)
           
private  void displayError(int pos, java.lang.String message)
           
private static java.util.Map getMethods(java.lang.Class clazz)
           
private static java.lang.CharSequence methodSignature(java.lang.String methodName, java.lang.Class[] paramTypes)
           
private  boolean validateInterface(Parser.ClassInfo clazz, boolean onlyInner)
           
static boolean validateInterface(Parser.ClassInfo clazz, Parser.Result parseResult, java.lang.String fileName, MIJavaCompiler.Result result)
           
private  boolean validateMIClass(Parser.ClassInfo clazz)
           
static boolean validateMIClass(Parser.ClassInfo clazz, Parser.Result parseResult, java.lang.String fileName, MIJavaCompiler.Result result)
           
static boolean validateSourceFile(java.lang.String sourceFile, MIJavaCompiler.Result result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parseResult

private final Parser.Result parseResult

fileName

private final java.lang.String fileName

compileResult

private final MIJavaCompiler.Result compileResult

_ID_

private static final java.lang.String _ID_
See Also:
Constant Field Values
Constructor Detail

Validator

private Validator(Parser.Result parseResult,
                  java.lang.String fileName,
                  MIJavaCompiler.Result compileResult)
Method Detail

validateSourceFile

public static boolean validateSourceFile(java.lang.String sourceFile,
                                         MIJavaCompiler.Result result)

validateInterface

public static boolean validateInterface(Parser.ClassInfo clazz,
                                        Parser.Result parseResult,
                                        java.lang.String fileName,
                                        MIJavaCompiler.Result result)

validateMIClass

public static boolean validateMIClass(Parser.ClassInfo clazz,
                                      Parser.Result parseResult,
                                      java.lang.String fileName,
                                      MIJavaCompiler.Result result)

validateInterface

private boolean validateInterface(Parser.ClassInfo clazz,
                                  boolean onlyInner)

validateMIClass

private boolean validateMIClass(Parser.ClassInfo clazz)

displayError

private void displayError(DiffString ds,
                          int pos,
                          java.lang.String message)

displayError

private void displayError(int pos,
                          java.lang.String message)

getMethods

private static final java.util.Map getMethods(java.lang.Class clazz)

methodSignature

private static final java.lang.CharSequence methodSignature(java.lang.String methodName,
                                                            java.lang.Class[] paramTypes)