Uses of Class
com.github.javaparser.ast.expr.TypePatternExpr
-
-
Uses of TypePatternExpr in com.github.javaparser
Methods in com.github.javaparser that return TypePatternExpr Modifier and Type Method Description 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 TypePatternExpr Modifier and Type Method Description TypePatternExpr
Expression. asTypePatternExpr()
TypePatternExpr
TypePatternExpr. asTypePatternExpr()
TypePatternExpr
TypePatternExpr. clone()
TypePatternExpr
TypePatternExpr. setModifiers(NodeList<Modifier> modifiers)
TypePatternExpr
TypePatternExpr. setName(SimpleName name)
Methods in com.github.javaparser.ast.expr that return types with arguments of type TypePatternExpr Modifier and Type Method Description java.util.Optional<TypePatternExpr>
Expression. toTypePatternExpr()
java.util.Optional<TypePatternExpr>
TypePatternExpr. toTypePatternExpr()
Method parameters in com.github.javaparser.ast.expr with type arguments of type TypePatternExpr Modifier and Type Method Description void
Expression. ifTypePatternExpr(java.util.function.Consumer<TypePatternExpr> action)
void
TypePatternExpr. ifTypePatternExpr(java.util.function.Consumer<TypePatternExpr> action)
-
Uses of TypePatternExpr in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor with parameters of type TypePatternExpr Modifier and Type Method Description Visitable
CloneVisitor. visit(TypePatternExpr n, java.lang.Object arg)
java.lang.Boolean
EqualsVisitor. visit(TypePatternExpr n, Visitable arg)
java.util.List<R>
GenericListVisitorAdapter. visit(TypePatternExpr n, A arg)
R
GenericVisitor. visit(TypePatternExpr n, A arg)
R
GenericVisitorAdapter. visit(TypePatternExpr n, A arg)
R
GenericVisitorWithDefaults. visit(TypePatternExpr n, A arg)
java.lang.Integer
HashCodeVisitor. visit(TypePatternExpr n, java.lang.Void arg)
Visitable
ModifierVisitor. visit(TypePatternExpr n, A arg)
java.lang.Boolean
NoCommentEqualsVisitor. visit(TypePatternExpr n, Visitable arg)
java.lang.Integer
NoCommentHashCodeVisitor. visit(TypePatternExpr n, java.lang.Void arg)
void
NodeFinderVisitor. visit(TypePatternExpr n, Range arg)
java.lang.Boolean
ObjectIdentityEqualsVisitor. visit(TypePatternExpr n, Visitable arg)
java.lang.Integer
ObjectIdentityHashCodeVisitor. visit(TypePatternExpr n, java.lang.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 TypePatternExpr Modifier and Type Method Description void
DefaultPrettyPrinterVisitor. visit(TypePatternExpr n, java.lang.Void arg)
void
PrettyPrintVisitor. visit(TypePatternExpr n, java.lang.Void arg)
Deprecated. -
Uses of TypePatternExpr in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution that return types with arguments of type TypePatternExpr Modifier and Type Method Description default java.util.List<TypePatternExpr>
Context. negatedTypePatternExprsExposedFromChildren()
default java.util.Optional<TypePatternExpr>
Context. typePatternExprInScope(java.lang.String name)
With respect to solving, the AST "parent" of a block statement is not necessarily the same as the scope parent.default java.util.List<TypePatternExpr>
Context. typePatternExprsExposedFromChildren()
default java.util.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 TypePatternExpr Modifier and Type Field Description private java.util.List<TypePatternExpr>
PatternVariableResult. variablesIntroducedIfFalse
private java.util.List<TypePatternExpr>
PatternVariableResult. variablesIntroducedIfTrue
Methods in com.github.javaparser.symbolsolver.javaparsermodel that return types with arguments of type TypePatternExpr Modifier and Type Method Description java.util.List<TypePatternExpr>
PatternVariableResult. getVariablesIntroducedIfFalse()
java.util.List<TypePatternExpr>
PatternVariableResult. getVariablesIntroducedIfTrue()
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type TypePatternExpr Modifier and Type Method Description ResolvedType
DefaultVisitorAdapter. visit(TypePatternExpr node, java.lang.Boolean aBoolean)
Method parameters in com.github.javaparser.symbolsolver.javaparsermodel with type arguments of type TypePatternExpr Modifier and Type Method Description void
PatternVariableResult. addVariablesIntroducedIfFalse(java.util.List<TypePatternExpr> patterns)
void
PatternVariableResult. addVariablesIntroducedIfTrue(java.util.List<TypePatternExpr> patterns)
Constructor parameters in com.github.javaparser.symbolsolver.javaparsermodel with type arguments of type TypePatternExpr Constructor Description PatternVariableResult(java.util.LinkedList<TypePatternExpr> variablesIntroducedIfTrue, java.util.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 TypePatternExpr Modifier and Type Method Description java.util.List<TypePatternExpr>
DoStatementContext. 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.java.util.List<TypePatternExpr>
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.java.util.List<TypePatternExpr>
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.java.util.List<TypePatternExpr>
StatementContext. getIntroducedTypePatterns()
java.util.List<TypePatternExpr>
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.3java.util.List<TypePatternExpr>
AbstractJavaParserContext. negatedTypePatternExprsExposedFromChildren()
java.util.List<TypePatternExpr>
AbstractJavaParserContext. typePatternExprsDiscoveredInPattern(PatternExpr patternExpr)
When looking for a variable declaration in a pattern expression, there are 2 cases: 1.java.util.List<TypePatternExpr>
AbstractJavaParserContext. typePatternExprsExposedFromChildren()
java.util.List<TypePatternExpr>
BinaryExprContext. typePatternExprsExposedToChild(Node child)
java.util.List<TypePatternExpr>
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.java.util.List<TypePatternExpr>
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.java.util.List<TypePatternExpr>
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.java.util.List<TypePatternExpr>
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.java.util.List<TypePatternExpr>
SwitchEntryContext. typePatternExprsExposedToChild(Node child)
java.util.List<TypePatternExpr>
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 java.util.List<TypePatternExpr>
BinaryExprContext. typePatternExprsExposedToChildByAnd(Node child)
The following rules apply to a conditional-and expression a && b: - A pattern variable introduced by a when true is definitely matched at b.private java.util.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 TypePatternExpr Modifier and Type Field Description private TypePatternExpr
JavaParserTypePatternDeclaration. wrappedNode
Methods in com.github.javaparser.symbolsolver.javaparsermodel.declarations that return TypePatternExpr Modifier and Type Method Description TypePatternExpr
JavaParserTypePatternDeclaration. getWrappedNode()
Returns the JavaParser node associated with this JavaParserPatternDeclaration.Methods in com.github.javaparser.symbolsolver.javaparsermodel.declarations with parameters of type TypePatternExpr Modifier and Type Method Description static JavaParserTypePatternDeclaration
JavaParserSymbolDeclaration. patternVar(TypePatternExpr typePatternExpr, TypeSolver typeSolver)
Constructors in com.github.javaparser.symbolsolver.javaparsermodel.declarations with parameters of type TypePatternExpr Constructor Description JavaParserTypePatternDeclaration(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 TypePatternExpr Constructor Description TypePatternSymbolDeclarator(TypePatternExpr wrappedNode, TypeSolver typeSolver)
-