@Override public boolean equals(Object o) { return (o instanceof Context) && ((Context)o).isA(CallStringContext.class) && ((Context)o).get(CallStringContextSelector.CALL_STRING).equals(cs); }
@Override public boolean understands(CGNode node) { return isFindStatic(node) && node.getContext().isA(FindContext.class); }
@Override public boolean equals(Object o) { return (o instanceof Context) && ((Context)o).isA(CallStringContext.class) && ((Context)o).get(CallStringContextSelector.CALL_STRING).equals(cs); }
@Override public boolean understands(CGNode node) { return (isInvoke(node) || isType(node)) && node.getContext().isA(MethodContext.class); }
@Override public boolean understands(CGNode node) { return isFindStatic(node) && node.getContext().isA(FindContext.class); }
@Override public boolean understands(CGNode node) { return (isInvoke(node) || isType(node)) && node.getContext().isA(MethodContext.class); }
@Override public boolean equals(Object o) { return o instanceof Context && ((Context)o).isA(CallStringContextPair.class) && ((Context)o).get(CALL_STRING).equals(cs) && ((Context)o).get(BASE).equals(base); }
@Override public boolean equals(Object o) { return o instanceof Context && ((Context)o).isA(CallStringContextPair.class) && ((Context)o).get(CALL_STRING).equals(cs) && ((Context)o).get(BASE).equals(base); }
@Override public boolean understands(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } if (!(node.getContext().isA(JavaTypeContext.class))) { return false; } return node.getMethod().getReference().equals(CLASS_NEW_INSTANCE_REF); }
@Override public boolean understands(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } if (!(node.getContext().isA(JavaTypeContext.class))) { return false; } return ClassFactoryContextSelector.isClassFactory(node.getMethod().getReference()); }
@Override public boolean understands(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } if (!(node.getContext().isA(JavaTypeContext.class))) { return false; } return node.getMethod().getReference().equals(GetClassContextSelector.GET_CLASS); }
@Override public boolean understands(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } if (!(node.getContext().isA(JavaTypeContext.class))) { return false; } return ClassFactoryContextSelector.isClassFactory(node.getMethod().getReference()); }
@Override public boolean understands(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } if (!(node.getContext().isA(JavaTypeContext.class))) { return false; } return node.getMethod().getReference().equals(CLASS_NEW_INSTANCE_REF); }
@Override public boolean understands(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } if (!(node.getContext().isA(JavaTypeContext.class))) { return false; } return node.getMethod().getReference().equals(GetClassContextSelector.GET_CLASS); }
@Override public boolean understands(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } if (!(node.getContext().isA(ReceiverInstanceContext.class))) { return false; } Context r = node.getContext(); if (!(r.get(ContextKey.RECEIVER) instanceof ConstantKey)) { return false; } return node.getMethod().getReference().equals(METHOD_INVOKE) || node.getMethod().getReference().equals(CTOR_NEW_INSTANCE); }
@Override public boolean understands(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } if (!(node.getContext().isA(ReceiverInstanceContext.class))) { return false; } Context r = node.getContext(); if (!(r.get(ContextKey.RECEIVER) instanceof ConstantKey)) { return false; } return node.getMethod().getReference().equals(METHOD_INVOKE) || node.getMethod().getReference().equals(CTOR_NEW_INSTANCE); }
@Override public boolean understands(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } if (!(node.getContext().isA(JavaTypeContext.class))) { return false; } MethodReference mRef = node.getMethod().getReference(); return mRef.equals(GET_CONSTRUCTOR) || mRef.equals(GET_CONSTRUCTORS) || mRef.equals(GET_METHOD) || mRef.equals(GET_METHODS) || mRef.equals(GET_DECLARED_CONSTRUCTOR) || mRef.equals(GET_DECLARED_CONSTRUCTORS) || mRef.equals(GET_DECLARED_METHOD) || mRef.equals(GET_DECLARED_METHODS); }
@Override public boolean understands(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } if (!(node.getContext().isA(JavaTypeContext.class))) { return false; } MethodReference mRef = node.getMethod().getReference(); return mRef.equals(GET_CONSTRUCTOR) || mRef.equals(GET_CONSTRUCTORS) || mRef.equals(GET_METHOD) || mRef.equals(GET_METHODS) || mRef.equals(GET_DECLARED_CONSTRUCTOR) || mRef.equals(GET_DECLARED_CONSTRUCTORS) || mRef.equals(GET_DECLARED_METHOD) || mRef.equals(GET_DECLARED_METHODS); }