com.gomjabbar.meta.metaqueries
Class AbstractQueriesEngine

java.lang.Object
  |
  +--com.gomjabbar.meta.metaqueries.AbstractQueriesEngine
Direct Known Subclasses:
AbstractCachedQueriesEngine

public abstract class AbstractQueriesEngine
extends java.lang.Object


Constructor Summary
AbstractQueriesEngine()
           
 
Method Summary
protected abstract  void addToScope(ClassRef target, ClassRef origin)
           
protected abstract  void addToScope(ClassRef target, FieldRef origin)
           
protected abstract  void addToScope(ClassRef target, MethodRef origin)
           
protected abstract  void addToScope(FieldRef target, ClassRef origin)
           
protected abstract  void addToScope(FieldRef target, FieldRef origin)
           
protected abstract  void addToScope(FieldRef target, MethodRef origin)
           
protected abstract  void addToScope(MethodRef target, ClassRef origin)
           
protected abstract  void addToScope(MethodRef target, FieldRef origin)
           
protected abstract  void addToScope(MethodRef target, MethodRef origin)
           
 MethodRef[][] getAccessedBy_I(FieldRef[] fr)
           
 FieldRef[][] getAccesses(MethodRef[] mr)
           
 MethodRef[][] getCalledBy_I(MethodRef[] mr)
           
 MethodRef[][] getCalls(MethodRef[] mr)
           
 ClassRef[][] getClass(TypeRef[] tr)
           
abstract  ClassRef[][] getClassConstants(ClassRef[] cr)
           
 ClassRef[][] getExtendedBy_I(ClassRef[] cr)
           
abstract  ClassRef[][] getExtends(ClassRef[] cr)
           
abstract  FieldRef[][] getFields(ClassRef[] cr)
           
 ClassRef[][] getImplementedBy_I(ClassRef[] cr)
           
abstract  ClassRef[][] getImplements(ClassRef[] cr)
           
abstract  ClassRef[][] getInner(ClassRef[] cr)
           
abstract  FieldRef[][] getInvertedFieldScope_S(ClassRef[] targets)
           
abstract  FieldRef[][] getInvertedFieldScope_S(FieldRef[] targets)
           
abstract  FieldRef[][] getInvertedFieldScope_S(MethodRef[] targets)
           
abstract  MethodRef[][] getInvertedMethodScope_S(ClassRef[] targets)
           
abstract  MethodRef[][] getInvertedMethodScope_S(FieldRef[] targets)
           
abstract  MethodRef[][] getInvertedMethodScope_S(MethodRef[] targets)
           
abstract  ClassRef[][] getInvertedScope_S(ClassRef[] targets)
           
abstract  ClassRef[][] getInvertedScope_S(FieldRef[] targets)
           
abstract  ClassRef[][] getInvertedScope_S(MethodRef[] targets)
           
 MethodRef[][] getMentionnedBy_I(ClassRef[] cr)
           
 ClassRef[][] getMentions(MethodRef[] mr)
           
abstract  MethodRef[][] getMethods(ClassRef[] cr)
           
abstract  ClassRef[][] getOuter(ClassRef[] cr)
           
 MethodRef[][] getParameterOf_I(ClassRef[] cr)
           
 ParameterRef[][] getParameters(SignatureRef[] sr)
           
 ClassRef[][] getParametersClasses(MethodRef[] mr)
           
 ClassRef[][] getParent(FieldRef[] fr)
           
 ClassRef[][] getParent(MethodRef[] mr)
           
abstract  ReferenceRef[][] getReferences(MethodRef[] mr)
           
 Ref[][] getReferences(ReferenceRef[] rr)
           
 SignatureRef[][] getSignature(MethodRef[] mr)
           
abstract  ClassRef[][] getThrows(MethodRef[] mr)
           
 TypeRef[][] getType(FieldRef[] fr)
           
 TypeRef[][] getType(ParameterRef[] pr)
           
 ClassRef[][] getTypeClass(FieldRef[] fr)
           
 FieldRef[][] getTypeOf_I(ClassRef[] cr)
           
 void init(java.lang.String[] scope_origins, java.lang.String file_extension)
           
 java.lang.Object[][] invoke(java.lang.String queryName, java.lang.Object[] o)
           
 boolean isScanning()
           
 void joinInited()
           
protected abstract  FieldRef[][] prepareFieldScope(ClassRef[] cr)
           
protected abstract  FieldRef[][] prepareFieldScope(FieldRef[] cr)
           
protected abstract  FieldRef[][] prepareFieldScope(MethodRef[] cr)
           
protected abstract  MethodRef[][] prepareMethodScope(ClassRef[] cr)
           
protected abstract  MethodRef[][] prepareMethodScope(FieldRef[] cr)
           
protected abstract  MethodRef[][] prepareMethodScope(MethodRef[] cr)
           
protected abstract  ClassRef[][] prepareScope(ClassRef[] cr)
           
protected abstract  ClassRef[][] prepareScope(FieldRef[] cr)
           
protected abstract  ClassRef[][] prepareScope(MethodRef[] cr)
           
 void setInited(boolean v)
           
 void setScanning(boolean s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractQueriesEngine

public AbstractQueriesEngine()
Method Detail

getParent

public ClassRef[][] getParent(FieldRef[] fr)

getParent

public ClassRef[][] getParent(MethodRef[] mr)

getType

public TypeRef[][] getType(FieldRef[] fr)

getClass

public ClassRef[][] getClass(TypeRef[] tr)

getSignature

public SignatureRef[][] getSignature(MethodRef[] mr)

getParameters

public ParameterRef[][] getParameters(SignatureRef[] sr)

getType

public TypeRef[][] getType(ParameterRef[] pr)

getReferences

public Ref[][] getReferences(ReferenceRef[] rr)

getTypeClass

public ClassRef[][] getTypeClass(FieldRef[] fr)

getParametersClasses

public ClassRef[][] getParametersClasses(MethodRef[] mr)

getAccesses

public FieldRef[][] getAccesses(MethodRef[] mr)
                         throws java.lang.Exception

getCalls

public MethodRef[][] getCalls(MethodRef[] mr)
                       throws java.lang.Exception

getMentions

public ClassRef[][] getMentions(MethodRef[] mr)
                         throws java.lang.Exception

getExtendedBy_I

public ClassRef[][] getExtendedBy_I(ClassRef[] cr)
                             throws java.lang.Exception

getImplementedBy_I

public ClassRef[][] getImplementedBy_I(ClassRef[] cr)
                                throws java.lang.Exception

getParameterOf_I

public MethodRef[][] getParameterOf_I(ClassRef[] cr)
                               throws java.lang.Exception

getTypeOf_I

public FieldRef[][] getTypeOf_I(ClassRef[] cr)
                         throws java.lang.Exception

getAccessedBy_I

public MethodRef[][] getAccessedBy_I(FieldRef[] fr)
                              throws java.lang.Exception

getCalledBy_I

public MethodRef[][] getCalledBy_I(MethodRef[] mr)
                            throws java.lang.Exception

getMentionnedBy_I

public MethodRef[][] getMentionnedBy_I(ClassRef[] cr)
                                throws java.lang.Exception

getReferences

public abstract ReferenceRef[][] getReferences(MethodRef[] mr)
                                        throws java.lang.Exception

getThrows

public abstract ClassRef[][] getThrows(MethodRef[] mr)
                                throws java.lang.Exception

getClassConstants

public abstract ClassRef[][] getClassConstants(ClassRef[] cr)
                                        throws java.lang.Exception

getFields

public abstract FieldRef[][] getFields(ClassRef[] cr)
                                throws java.lang.Exception

getMethods

public abstract MethodRef[][] getMethods(ClassRef[] cr)
                                  throws java.lang.Exception

getImplements

public abstract ClassRef[][] getImplements(ClassRef[] cr)
                                    throws java.lang.Exception

getExtends

public abstract ClassRef[][] getExtends(ClassRef[] cr)
                                 throws java.lang.Exception

getInner

public abstract ClassRef[][] getInner(ClassRef[] cr)
                               throws java.lang.Exception

getOuter

public abstract ClassRef[][] getOuter(ClassRef[] cr)
                               throws java.lang.Exception

invoke

public java.lang.Object[][] invoke(java.lang.String queryName,
                                   java.lang.Object[] o)
                            throws java.lang.reflect.InvocationTargetException,
                                   java.lang.ClassNotFoundException,
                                   java.lang.NoSuchMethodException,
                                   java.lang.IllegalAccessException

setInited

public void setInited(boolean v)

joinInited

public void joinInited()
                throws java.lang.InterruptedException

init

public void init(java.lang.String[] scope_origins,
                 java.lang.String file_extension)
          throws java.lang.reflect.InvocationTargetException,
                 java.lang.NoSuchMethodException,
                 java.lang.IllegalAccessException,
                 java.lang.Exception

getInvertedScope_S

public abstract ClassRef[][] getInvertedScope_S(ClassRef[] targets)
                                         throws java.lang.Exception

getInvertedFieldScope_S

public abstract FieldRef[][] getInvertedFieldScope_S(ClassRef[] targets)
                                              throws java.lang.Exception

getInvertedMethodScope_S

public abstract MethodRef[][] getInvertedMethodScope_S(ClassRef[] targets)
                                                throws java.lang.Exception

getInvertedScope_S

public abstract ClassRef[][] getInvertedScope_S(FieldRef[] targets)
                                         throws java.lang.Exception

getInvertedFieldScope_S

public abstract FieldRef[][] getInvertedFieldScope_S(FieldRef[] targets)
                                              throws java.lang.Exception

getInvertedMethodScope_S

public abstract MethodRef[][] getInvertedMethodScope_S(FieldRef[] targets)
                                                throws java.lang.Exception

getInvertedScope_S

public abstract ClassRef[][] getInvertedScope_S(MethodRef[] targets)
                                         throws java.lang.Exception

getInvertedFieldScope_S

public abstract FieldRef[][] getInvertedFieldScope_S(MethodRef[] targets)
                                              throws java.lang.Exception

getInvertedMethodScope_S

public abstract MethodRef[][] getInvertedMethodScope_S(MethodRef[] targets)
                                                throws java.lang.Exception

prepareScope

protected abstract ClassRef[][] prepareScope(ClassRef[] cr)
                                      throws java.lang.Exception

prepareFieldScope

protected abstract FieldRef[][] prepareFieldScope(ClassRef[] cr)
                                           throws java.lang.Exception

prepareMethodScope

protected abstract MethodRef[][] prepareMethodScope(ClassRef[] cr)
                                             throws java.lang.Exception

prepareScope

protected abstract ClassRef[][] prepareScope(FieldRef[] cr)
                                      throws java.lang.Exception

prepareMethodScope

protected abstract MethodRef[][] prepareMethodScope(FieldRef[] cr)
                                             throws java.lang.Exception

prepareFieldScope

protected abstract FieldRef[][] prepareFieldScope(FieldRef[] cr)
                                           throws java.lang.Exception

prepareScope

protected abstract ClassRef[][] prepareScope(MethodRef[] cr)
                                      throws java.lang.Exception

prepareFieldScope

protected abstract FieldRef[][] prepareFieldScope(MethodRef[] cr)
                                           throws java.lang.Exception

prepareMethodScope

protected abstract MethodRef[][] prepareMethodScope(MethodRef[] cr)
                                             throws java.lang.Exception

addToScope

protected abstract void addToScope(ClassRef target,
                                   ClassRef origin)

addToScope

protected abstract void addToScope(FieldRef target,
                                   ClassRef origin)

addToScope

protected abstract void addToScope(MethodRef target,
                                   ClassRef origin)

addToScope

protected abstract void addToScope(ClassRef target,
                                   FieldRef origin)

addToScope

protected abstract void addToScope(FieldRef target,
                                   FieldRef origin)

addToScope

protected abstract void addToScope(MethodRef target,
                                   FieldRef origin)

addToScope

protected abstract void addToScope(ClassRef target,
                                   MethodRef origin)

addToScope

protected abstract void addToScope(FieldRef target,
                                   MethodRef origin)

addToScope

protected abstract void addToScope(MethodRef target,
                                   MethodRef origin)

setScanning

public void setScanning(boolean s)

isScanning

public boolean isScanning()