Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.tinkerpop.frames.annotations;
 
    @Override
    public Class<IncidencegetAnnotationType() {
        return Incidence.class;
    }
    @Override
    public Object processVertex(final Incidence incidencefinal Method methodfinal Object[] argumentsfinal FramedGraph framedGraphfinal Vertex element) {
        if (ClassUtilities.isGetMethod(method)) {
            return new FramedEdgeIterable(framedGraphelement.getEdges(incidence.direction(), incidence.label()), incidence.direction(), ClassUtilities.getGenericClass(method));
        } else if (ClassUtilities.isAddMethod(method)) {
            if (incidence.direction().equals(.))
                return framedGraph.addEdge(nullelement, (Vertex) ((FramedElement) Proxy.getInvocationHandler(arguments[0])).getElement(), incidence.label(), .method.getReturnType());
            else
                return framedGraph.addEdge(null, (Vertex) ((FramedElement) Proxy.getInvocationHandler(arguments[0])).getElement(), elementincidence.label(), .method.getReturnType());
        } else if (ClassUtilities.isRemoveMethod(method)) {
            framedGraph.getBaseGraph().removeEdge((Edge) ((FramedElement) Proxy.getInvocationHandler(arguments[0])).getElement());
            return null;
        }
        return null;
    }
    @Override
    public Object processEdge(final Incidence annotationfinal Method methodfinal Object[] argumentsfinal FramedGraph framedGraphfinal Edge elementfinal Direction direction) {
        throw new UnsupportedOperationException();
    }
New to GrepCode? Check out our FAQ X