Uses of Class
com.github.javaparser.ast.expr.TypePatternExpr
Packages that use TypePatternExpr
Package
Description
Implementation of model based on JavaParser.
-
Uses of TypePatternExpr in com.github.javaparser
Methods in com.github.javaparser that return TypePatternExprModifier and TypeMethodDescriptionfinal TypePatternExpr
GeneratedJavaParser.TypePatternExpression()
https://openjdk.java.net/jeps/375 The instanceof grammar is extended accordingly: -
Uses of TypePatternExpr in com.github.javaparser.ast.expr
Methods in com.github.javaparser.ast.expr that return TypePatternExprModifier and TypeMethodDescriptionExpression.asTypePatternExpr()
TypePatternExpr.asTypePatternExpr()
TypePatternExpr.clone()
TypePatternExpr.setModifiers
(NodeList<Modifier> modifiers) TypePatternExpr.setName
(SimpleName name) Methods in com.github.javaparser.ast.expr that return types with arguments of type TypePatternExprModifier and TypeMethodDescriptionExpression.toTypePatternExpr()
TypePatternExpr.toTypePatternExpr()
Method parameters in com.github.javaparser.ast.expr with type arguments of type TypePatternExprModifier and TypeMethodDescriptionvoid
Expression.ifTypePatternExpr
(Consumer<TypePatternExpr> action) void
TypePatternExpr.ifTypePatternExpr
(Consumer<TypePatternExpr> action) -
Uses of TypePatternExpr in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor with parameters of type TypePatternExprModifier and TypeMethodDescriptionCloneVisitor.visit
(TypePatternExpr n, Object arg) EqualsVisitor.visit
(TypePatternExpr n, Visitable arg) GenericListVisitorAdapter.visit
(TypePatternExpr n, A arg) GenericVisitor.visit
(TypePatternExpr n, A arg) GenericVisitorAdapter.visit
(TypePatternExpr n, A arg) GenericVisitorWithDefaults.visit
(TypePatternExpr n, A arg) HashCodeVisitor.visit
(TypePatternExpr n, Void arg) ModifierVisitor.visit
(TypePatternExpr n, A arg) NoCommentEqualsVisitor.visit
(TypePatternExpr n, Visitable arg) NoCommentHashCodeVisitor.visit
(TypePatternExpr n, Void arg) void
NodeFinderVisitor.visit
(TypePatternExpr n, Range arg) ObjectIdentityEqualsVisitor.visit
(TypePatternExpr n, Visitable arg) ObjectIdentityHashCodeVisitor.visit
(TypePatternExpr n, Void arg) void
VoidVisitor.visit
(TypePatternExpr n, A arg) void
VoidVisitorAdapter.visit
(TypePatternExpr n, A arg) void
VoidVisitorWithDefaults.visit
(TypePatternExpr n, A arg) -
Uses of TypePatternExpr in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type TypePatternExprModifier and TypeMethodDescriptionvoid
DefaultPrettyPrinterVisitor.visit
(TypePatternExpr n, Void arg) void
PrettyPrintVisitor.visit
(TypePatternExpr n, Void arg) Deprecated. -
Uses of TypePatternExpr in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution that return types with arguments of type TypePatternExprModifier and TypeMethodDescriptiondefault List
<TypePatternExpr> default Optional
<TypePatternExpr> Context.typePatternExprInScope
(String name) With respect to solving, the AST "parent" of a block statement is not necessarily the same as the scope parent.default List
<TypePatternExpr> Context.typePatternExprsExposedFromChildren()
default List
<TypePatternExpr> Context.typePatternExprsExposedToChild
(Node child) The pattern expressions that are declared in this immediate context and made visible to a given child. -
Uses of TypePatternExpr in com.github.javaparser.symbolsolver.javaparsermodel
Fields in com.github.javaparser.symbolsolver.javaparsermodel with type parameters of type TypePatternExprModifier and TypeFieldDescriptionprivate List
<TypePatternExpr> PatternVariableResult.variablesIntroducedIfFalse
private List
<TypePatternExpr> PatternVariableResult.variablesIntroducedIfTrue
Methods in com.github.javaparser.symbolsolver.javaparsermodel that return types with arguments of type TypePatternExprModifier and TypeMethodDescriptionPatternVariableResult.getVariablesIntroducedIfFalse()
PatternVariableResult.getVariablesIntroducedIfTrue()
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type TypePatternExprModifier and TypeMethodDescriptionDefaultVisitorAdapter.visit
(TypePatternExpr node, Boolean aBoolean) Method parameters in com.github.javaparser.symbolsolver.javaparsermodel with type arguments of type TypePatternExprModifier and TypeMethodDescriptionvoid
PatternVariableResult.addVariablesIntroducedIfFalse
(List<TypePatternExpr> patterns) void
PatternVariableResult.addVariablesIntroducedIfTrue
(List<TypePatternExpr> patterns) Constructor parameters in com.github.javaparser.symbolsolver.javaparsermodel with type arguments of type TypePatternExprModifierConstructorDescriptionPatternVariableResult
(LinkedList<TypePatternExpr> variablesIntroducedIfTrue, LinkedList<TypePatternExpr> variablesIntroducedIfFalse) -
Uses of TypePatternExpr in com.github.javaparser.symbolsolver.javaparsermodel.contexts
Methods in com.github.javaparser.symbolsolver.javaparsermodel.contexts that return types with arguments of type TypePatternExprModifier and TypeMethodDescriptionDoStatementContext.getIntroducedTypePatterns()
The following rule applies to a statement do S while (e): - A pattern variable is introduced by do S while (e) iff (i) it is introduced by e when false and (ii) S does not contain a reachable break statement for which the do statement is the break target.ForStatementContext.getIntroducedTypePatterns()
The following rules apply to a basic for statement: - A pattern variable is introduced by a basic for statement iff (i) it is introduced by the condition expression when false and (ii) the contained statement, S, does not contain a reachable break for which the basic for statement is the break target.IfStatementContext.getIntroducedTypePatterns()
The following rules apply to a statement if (e) S: - A pattern variable is introduced by if (e) S iff (i) it is introduced by e when false and (ii) S cannot complete normally.StatementContext.getIntroducedTypePatterns()
WhileStatementContext.getIntroducedTypePatterns()
The following rules apply to a statement while (e) S: - A pattern variable is introduced by while (e) S iff (i) it is introduced by e when false and (ii) S does not contain a reachable break statement for which the while statement is the break target https://docs.oracle.com/javase/specs/jls/se21/html/jls-6.html#jls-6.3.2.3AbstractJavaParserContext.negatedTypePatternExprsExposedFromChildren()
AbstractJavaParserContext.typePatternExprsDiscoveredInPattern
(PatternExpr patternExpr) When looking for a variable declaration in a pattern expression, there are 2 cases: 1.AbstractJavaParserContext.typePatternExprsExposedFromChildren()
BinaryExprContext.typePatternExprsExposedToChild
(Node child) BlockStmtContext.typePatternExprsExposedToChild
(Node child) The following rule applies to a block statement S contained in a block that is not a switch block: - A pattern variable introduced by S is definitely matched at all the block statements following S, if any, in the block.ConditionalExprContext.typePatternExprsExposedToChild
(Node child) The following rules apply to a conditional expression a ? b : c: - A pattern variable introduced by a when true is definitely matched at b.ForStatementContext.typePatternExprsExposedToChild
(Node child) The following rules apply to a basic for statement: - A pattern variable introduced by the condition expression when true is definitely matched at both the incrementation part and the contained statement.IfStatementContext.typePatternExprsExposedToChild
(Node child) The following rules apply to a statement if (e) S: - A pattern variable introduced by e when true is definitely matched at S.SwitchEntryContext.typePatternExprsExposedToChild
(Node child) WhileStatementContext.typePatternExprsExposedToChild
(Node child) The following rules apply to a statement while (e) S: - A pattern variable introduced by e when true is definitely matched at S.private List
<TypePatternExpr> BinaryExprContext.typePatternExprsExposedToChildByAnd
(Node child) The following rules apply to a conditional-and expression a invalid input: '&'invalid input: '&' b: - A pattern variable introduced by a when true is definitely matched at b.private List
<TypePatternExpr> BinaryExprContext.typePatternExprsExposedToChildByOr
(Node child) The following rules apply to a conditional-and expression a || b: - A pattern variable introduced by a when false is definitely matched at b. -
Uses of TypePatternExpr in com.github.javaparser.symbolsolver.javaparsermodel.declarations
Fields in com.github.javaparser.symbolsolver.javaparsermodel.declarations declared as TypePatternExprModifier and TypeFieldDescriptionprivate final TypePatternExpr
JavaParserTypePatternDeclaration.wrappedNode
Methods in com.github.javaparser.symbolsolver.javaparsermodel.declarations that return TypePatternExprModifier and TypeMethodDescriptionJavaParserTypePatternDeclaration.getWrappedNode()
Returns the JavaParser node associated with this JavaParserPatternDeclaration.Methods in com.github.javaparser.symbolsolver.javaparsermodel.declarations with parameters of type TypePatternExprModifier and TypeMethodDescriptionJavaParserSymbolDeclaration.patternVar
(TypePatternExpr typePatternExpr, TypeSolver typeSolver) Constructors in com.github.javaparser.symbolsolver.javaparsermodel.declarations with parameters of type TypePatternExprModifierConstructorDescriptionJavaParserTypePatternDeclaration
(TypePatternExpr wrappedNode, TypeSolver typeSolver) -
Uses of TypePatternExpr in com.github.javaparser.symbolsolver.javaparsermodel.declarators
Constructors in com.github.javaparser.symbolsolver.javaparsermodel.declarators with parameters of type TypePatternExprModifierConstructorDescriptionTypePatternSymbolDeclarator
(TypePatternExpr wrappedNode, TypeSolver typeSolver)