java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<BinaryExpr>
com.github.javaparser.symbolsolver.javaparsermodel.contexts.BinaryExprContext
All Implemented Interfaces:
Context

public class BinaryExprContext extends AbstractJavaParserContext<BinaryExpr>
  • Constructor Details

  • Method Details

    • patternExprsExposedFromChildren

      public List<PatternExpr> patternExprsExposedFromChildren()
    • negatedPatternExprsExposedFromChildren

      public List<PatternExpr> negatedPatternExprsExposedFromChildren()
    • patternExprsExposedToChild

      public List<PatternExpr> patternExprsExposedToChild(Node child)
      Description copied from interface: Context
      The pattern expressions that are declared in this immediate context and made visible to a given child. This list could include values which are shadowed.
    • patternExprInScope

      public Optional<PatternExpr> patternExprInScope(String name)
      Description copied from interface: Context
      With respect to solving, the AST "parent" of a block statement is not necessarily the same as the scope parent.
      Example:
      
        public String x() {
            if(x) {
                // Parent node: the block attached to the method declaration
                // Scope-parent: the block attached to the method declaration
            } else if {
                // Parent node: the if
                // Scope-parent: the block attached to the method declaration
            } else {
                // Parent node: the elseif
                // Scope-parent: the block attached to the method declaration
            }
        }