solveType

Method used to solve a name with an expected list of type arguments. This method differs from solveType by taking the type arguments in consideration. For example, lets imagine that we have a project containing the following classes:

  • com/example/Alpha.java
  • com/example/Beta.java
Where Alpha creates a inner interface called CustomInterface and Beta implements Alpha.CustomInterface and also declares a inner interface called CustomInterface with type arguments. Using this method we can specify which type arguments we are expecting and will be resolved with the type matching that declaration.

Return

The declaration associated with the given type name.

Parameters

name

The name to be solved.

typeArguments

The list of expected type arguments.


Deprecated

Consider using method solveType that also consider the type arguments. If you want to keep to use the new function, but keep the same behavior consider passing type arguments as null.

Default to being unable to solve any reference in this context, delegating solving to the parent context. Contexts which exist as the "parent" of a resolvable type will override this method. For example, a compilation unit can contain classes. A class declaration can also contain types (e.g. a subclass).

Return

The declaration associated with the given type name.

Parameters

name

For example, solving List or java.util.List.