com.syncleus.ferma.WrappedFramedGraph.getBaseGraph()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(70)

本文整理了Java中com.syncleus.ferma.WrappedFramedGraph.getBaseGraph()方法的一些代码示例,展示了WrappedFramedGraph.getBaseGraph()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WrappedFramedGraph.getBaseGraph()方法的具体详情如下:
包路径:com.syncleus.ferma.WrappedFramedGraph
类名称:WrappedFramedGraph
方法名:getBaseGraph

WrappedFramedGraph.getBaseGraph介绍

暂无

代码示例

代码示例来源:origin: org.jboss.windup.reporting/windup-reporting-api

  1. /**
  2. * Get all {@link InlineHintModel} instances attached to this {@link ReportFileModel}
  3. */
  4. default List<InlineHintModel> getInlineHints()
  5. {
  6. List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
  7. .in(FileReferenceModel.FILE_MODEL)
  8. .has(WindupVertexFrame.TYPE_PROP, InlineHintModel.TYPE)
  9. .toList();
  10. return vertices.stream().map(v -> getGraph().frameElement(v, InlineHintModel.class))
  11. .collect(Collectors.toList());
  12. }

代码示例来源:origin: windup/windup

  1. /**
  2. * Get all {@link ClassificationModel} instances attached to this {@link ReportFileModel}
  3. */
  4. @Adjacency(label = ClassificationModel.FILE_MODEL, direction = Direction.IN)
  5. default List<ClassificationModel> getClassificationModels()
  6. {
  7. List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
  8. .in(ClassificationModel.FILE_MODEL)
  9. .toList();
  10. return vertices.stream().map(v -> getGraph().frameElement(v, ClassificationModel.class))
  11. .collect(Collectors.toList());
  12. }

代码示例来源:origin: windup/windup

  1. /**
  2. * Get all {@link InlineHintModel} instances attached to this {@link ReportFileModel}
  3. */
  4. default List<InlineHintModel> getInlineHints()
  5. {
  6. List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
  7. .in(FileReferenceModel.FILE_MODEL)
  8. .has(WindupVertexFrame.TYPE_PROP, InlineHintModel.TYPE)
  9. .toList();
  10. return vertices.stream().map(v -> getGraph().frameElement(v, InlineHintModel.class))
  11. .collect(Collectors.toList());
  12. }

代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api

  1. /**
  2. * Gets the {@link JavaMethodModel} by name
  3. */
  4. default List<JavaMethodModel> getMethod(String methodName)
  5. {
  6. List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
  7. .in(JAVA_METHOD)
  8. .has(JavaMethodModel.METHOD_NAME, methodName)
  9. .toList();
  10. return vertices.stream().map(v -> getGraph().frameElement(v, JavaMethodModel.class))
  11. .collect(Collectors.toList());
  12. }

代码示例来源:origin: org.jboss.windup.reporting/windup-reporting-api

  1. /**
  2. * Get all {@link ClassificationModel} instances attached to this {@link ReportFileModel}
  3. */
  4. @Adjacency(label = ClassificationModel.FILE_MODEL, direction = Direction.IN)
  5. default List<ClassificationModel> getClassificationModels()
  6. {
  7. List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
  8. .in(ClassificationModel.FILE_MODEL)
  9. .toList();
  10. return vertices.stream().map(v -> getGraph().frameElement(v, ClassificationModel.class))
  11. .collect(Collectors.toList());
  12. }

代码示例来源:origin: windup/windup

  1. /**
  2. * Gets the {@link JavaMethodModel} by name
  3. */
  4. default List<JavaMethodModel> getMethod(String methodName)
  5. {
  6. List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
  7. .in(JAVA_METHOD)
  8. .has(JavaMethodModel.METHOD_NAME, methodName)
  9. .toList();
  10. return vertices.stream().map(v -> getGraph().frameElement(v, JavaMethodModel.class))
  11. .collect(Collectors.toList());
  12. }

代码示例来源:origin: windup/windup

  1. /**
  2. * Returns the number of method parameters to this method
  3. */
  4. default long countParameters()
  5. {
  6. return new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
  7. .in(METHOD_PARAMETER).toList().size();
  8. }

代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api

  1. /**
  2. * Returns the number of method parameters to this method
  3. */
  4. default long countParameters()
  5. {
  6. return new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
  7. .in(METHOD_PARAMETER).toList().size();
  8. }

代码示例来源:origin: org.jboss.windup.graph/windup-graph-impl

  1. throw new WindupException("Framed graph must be an instance of " + WrappedFramedGraph.class.getCanonicalName());
  2. Graph graph = (Graph)((WrappedFramedGraph) framedGraph).getBaseGraph();

代码示例来源:origin: windup/windup

  1. throw new WindupException("Framed graph must be an instance of " + WrappedFramedGraph.class.getCanonicalName());
  2. Graph graph = (Graph)((WrappedFramedGraph) framedGraph).getBaseGraph();

相关文章