@Override public boolean understands(CGNode node) { return isFindStatic(node) && node.getContext().isA(FindContext.class); }
@Override public ContextItem get(ContextKey name) { if (APPLY_NON_NULL_ARGS.equals(name)) { return isNonNullArray; } else { return delegate.get(name); } }
@Override public boolean understands(CGNode node) { return isFindStatic(node) && node.getContext().isA(FindContext.class); }
@Override public ContextItem get(ContextKey name) { if (APPLY_NON_NULL_ARGS.equals(name)) { return isNonNullArray; } else { return delegate.get(name); } }
@Override public boolean understands(CGNode node) { return (isInvoke(node) || isType(node)) && node.getContext().isA(MethodContext.class); }
@Override public ContextItem get(ContextKey name) { if (CALL_STRING.equals(name)) { return cs; } else if (BASE.equals(name)) { return base; } else { return base.get(name); } }
@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) { return (isInvoke(node) || isType(node)) && node.getContext().isA(MethodContext.class); }
@Override public ContextItem get(ContextKey name) { if (CALL_STRING.equals(name)) { return cs; } else if (BASE.equals(name)) { return base; } else { return base.get(name); } }
@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; } return ClassFactoryContextSelector.isClassFactory(node.getMethod().getReference()); }
/** * Looks up a ContextKey in the Context. * * @return an Intent or parent-managed object. * @throws IllegalArgumentException if the name is null. */ @Override public ContextItem get (ContextKey name) { if (name == null) { throw new IllegalArgumentException("name is null"); } if (name.equals(INTENT_KEY)) { return intent; } else if(this.parent != null) { return this.parent.get(name); } else { return null; } }