You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by GitBox <gi...@apache.org> on 2020/11/03 13:50:48 UTC

[GitHub] [tinkerpop] spmallette commented on a change in pull request #1308: TINKERPOP-2389 WIP: Authorization support in TinkerPop

spmallette commented on a change in pull request #1308:
URL: https://github.com/apache/tinkerpop/pull/1308#discussion_r515934619



##########
File path: gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/BytecodeUtil.java
##########
@@ -43,4 +47,16 @@ private BytecodeUtil() {}
                         s -> s.getOperator().equals(TraversalSource.Symbols.withStrategies) && clazz.isAssignableFrom(s.getArguments()[0].getClass())),
                 os -> (A) os.getArguments()[0]);
     }
+
+    /**
+     * Parses {@link Bytecode} to find {@link Step} objects in the step instructions.
+     * @return
+     */
+    public static Iterator<Step> findSteps(final Bytecode bytecode, final Class<?> clazz) {

Review comment:
       yeah - thanks for pointing that out. i shouldnt have added `BytecodeUtil`....




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org