本文整理了Java中com.syncleus.ferma.WrappedFramedGraph.getBaseGraph()
方法的一些代码示例,展示了WrappedFramedGraph.getBaseGraph()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WrappedFramedGraph.getBaseGraph()
方法的具体详情如下:
包路径:com.syncleus.ferma.WrappedFramedGraph
类名称:WrappedFramedGraph
方法名:getBaseGraph
暂无
代码示例来源:origin: org.jboss.windup.reporting/windup-reporting-api
/**
* Get all {@link InlineHintModel} instances attached to this {@link ReportFileModel}
*/
default List<InlineHintModel> getInlineHints()
{
List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
.in(FileReferenceModel.FILE_MODEL)
.has(WindupVertexFrame.TYPE_PROP, InlineHintModel.TYPE)
.toList();
return vertices.stream().map(v -> getGraph().frameElement(v, InlineHintModel.class))
.collect(Collectors.toList());
}
代码示例来源:origin: windup/windup
/**
* Get all {@link ClassificationModel} instances attached to this {@link ReportFileModel}
*/
@Adjacency(label = ClassificationModel.FILE_MODEL, direction = Direction.IN)
default List<ClassificationModel> getClassificationModels()
{
List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
.in(ClassificationModel.FILE_MODEL)
.toList();
return vertices.stream().map(v -> getGraph().frameElement(v, ClassificationModel.class))
.collect(Collectors.toList());
}
代码示例来源:origin: windup/windup
/**
* Get all {@link InlineHintModel} instances attached to this {@link ReportFileModel}
*/
default List<InlineHintModel> getInlineHints()
{
List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
.in(FileReferenceModel.FILE_MODEL)
.has(WindupVertexFrame.TYPE_PROP, InlineHintModel.TYPE)
.toList();
return vertices.stream().map(v -> getGraph().frameElement(v, InlineHintModel.class))
.collect(Collectors.toList());
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api
/**
* Gets the {@link JavaMethodModel} by name
*/
default List<JavaMethodModel> getMethod(String methodName)
{
List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
.in(JAVA_METHOD)
.has(JavaMethodModel.METHOD_NAME, methodName)
.toList();
return vertices.stream().map(v -> getGraph().frameElement(v, JavaMethodModel.class))
.collect(Collectors.toList());
}
代码示例来源:origin: org.jboss.windup.reporting/windup-reporting-api
/**
* Get all {@link ClassificationModel} instances attached to this {@link ReportFileModel}
*/
@Adjacency(label = ClassificationModel.FILE_MODEL, direction = Direction.IN)
default List<ClassificationModel> getClassificationModels()
{
List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
.in(ClassificationModel.FILE_MODEL)
.toList();
return vertices.stream().map(v -> getGraph().frameElement(v, ClassificationModel.class))
.collect(Collectors.toList());
}
代码示例来源:origin: windup/windup
/**
* Gets the {@link JavaMethodModel} by name
*/
default List<JavaMethodModel> getMethod(String methodName)
{
List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
.in(JAVA_METHOD)
.has(JavaMethodModel.METHOD_NAME, methodName)
.toList();
return vertices.stream().map(v -> getGraph().frameElement(v, JavaMethodModel.class))
.collect(Collectors.toList());
}
代码示例来源:origin: windup/windup
/**
* Returns the number of method parameters to this method
*/
default long countParameters()
{
return new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
.in(METHOD_PARAMETER).toList().size();
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api
/**
* Returns the number of method parameters to this method
*/
default long countParameters()
{
return new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement())
.in(METHOD_PARAMETER).toList().size();
}
代码示例来源:origin: org.jboss.windup.graph/windup-graph-impl
throw new WindupException("Framed graph must be an instance of " + WrappedFramedGraph.class.getCanonicalName());
Graph graph = (Graph)((WrappedFramedGraph) framedGraph).getBaseGraph();
代码示例来源:origin: windup/windup
throw new WindupException("Framed graph must be an instance of " + WrappedFramedGraph.class.getCanonicalName());
Graph graph = (Graph)((WrappedFramedGraph) framedGraph).getBaseGraph();
内容来源于网络,如有侵权,请联系作者删除!