Class StatementContext<N extends Statement>
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<N>
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.StatementContext<N>
-
- All Implemented Interfaces:
Context
public class StatementContext<N extends Statement> extends AbstractJavaParserContext<N>
- Author:
- Federico Tomassetti
-
-
Field Summary
-
Fields inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
typeSolver, wrappedNode
-
-
Constructor Summary
Constructors Constructor Description StatementContext(N wrappedNode, TypeSolver typeSolver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SymbolReference<? extends ResolvedValueDeclaration>
solveInBlock(String name, TypeSolver typeSolver, Statement stmt)
static Optional<Value>
solveInBlockAsValue(String name, TypeSolver typeSolver, Statement stmt)
SymbolReference<ResolvedMethodDeclaration>
solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)
We find the method declaration which is the best match for the given name and list of typeParametersValues.SymbolReference<? extends ResolvedValueDeclaration>
solveSymbol(String name)
Optional<Value>
solveSymbolAsValue(String name)
SymbolReference<ResolvedTypeDeclaration>
solveType(String name)
-
Methods inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
equals, findTypeDeclarations, getParent, getWrappedNode, hashCode, solveGenericType, solveWith, solveWithAsValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.symbolsolver.core.resolution.Context
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveMethodAsUsage
-
-
-
-
Constructor Detail
-
StatementContext
public StatementContext(N wrappedNode, TypeSolver typeSolver)
-
-
Method Detail
-
solveInBlock
public static SymbolReference<? extends ResolvedValueDeclaration> solveInBlock(String name, TypeSolver typeSolver, Statement stmt)
-
solveInBlockAsValue
public static Optional<Value> solveInBlockAsValue(String name, TypeSolver typeSolver, Statement stmt)
-
solveSymbol
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name)
-
solveMethod
public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)
Description copied from interface:Context
We find the method declaration which is the best match for the given name and list of typeParametersValues.
-
solveType
public SymbolReference<ResolvedTypeDeclaration> solveType(String name)
-
-