public abstract class AbstractMethodLikeDeclarationContext<T extends com.github.javaparser.ast.Node & com.github.javaparser.ast.nodeTypes.NodeWithParameters<T> & com.github.javaparser.ast.nodeTypes.NodeWithTypeParameters<T>> extends AbstractJavaParserContext<T>
typeSolver, wrappedNode
Constructor and Description |
---|
AbstractMethodLikeDeclarationContext(T wrappedNode,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
Optional<Type> |
solveGenericType(String name,
TypeSolver typeSolver) |
SymbolReference<MethodDeclaration> |
solveMethod(String name,
List<Type> argumentsTypes,
TypeSolver typeSolver)
We find the method declaration which is the best match for the given name and list of typeParametersValues.
|
SymbolReference<? extends ValueDeclaration> |
solveSymbol(String name,
TypeSolver typeSolver) |
Optional<Value> |
solveSymbolAsValue(String name,
TypeSolver typeSolver) |
SymbolReference<TypeDeclaration> |
solveType(String name,
TypeSolver typeSolver) |
equals, getParent, hashCode, solveWith, solveWithAsValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
solveMethodAsUsage
public AbstractMethodLikeDeclarationContext(T wrappedNode, TypeSolver typeSolver)
public final SymbolReference<? extends ValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)
public final Optional<Type> solveGenericType(String name, TypeSolver typeSolver)
solveGenericType
in interface Context
solveGenericType
in class AbstractJavaParserContext<T extends com.github.javaparser.ast.Node & com.github.javaparser.ast.nodeTypes.NodeWithParameters<T> & com.github.javaparser.ast.nodeTypes.NodeWithTypeParameters<T>>
public final Optional<Value> solveSymbolAsValue(String name, TypeSolver typeSolver)
public final SymbolReference<TypeDeclaration> solveType(String name, TypeSolver typeSolver)
public final SymbolReference<MethodDeclaration> solveMethod(String name, List<Type> argumentsTypes, TypeSolver typeSolver)
Context
Copyright © 2016. All rights reserved.