Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getVisitedClass (0.11 sec)

  1. platforms/jvm/java-compiler-plugin/src/main/java/org/gradle/internal/compiler/java/listeners/constants/ConstantsVisitorContext.java

        public ConstantsVisitorContext(String visitedClass, BiConsumer<String, String> consumer) {
            this.visitedClass = visitedClass;
            this.consumer = consumer;
        }
    
        public String getVisitedClass() {
            return visitedClass;
        }
    
        public void addConstantOrigin(String constantOrigin) {
            if (!constantOrigin.equals(visitedClass)) {
                consumer.accept(constantOrigin, visitedClass);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:06:26 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/jvm/java-compiler-plugin/src/main/java/org/gradle/internal/compiler/java/listeners/constants/ConstantsTreeVisitor.java

                // but it could be further optimized to check if expression is one that can be inlined or not.
                return super.visitVariable(node, new ConstantsVisitorContext(context.getVisitedClass(), consumer::consumeAccessibleDependent));
            } else {
                return super.visitVariable(node, context);
            }
        }
    
        private boolean isAccessibleConstantVariableDeclaration(VariableTree node) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:06:26 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top