public class ASTResolutionException extends ASTRuntimeException
TypeAnalyzer
analyzes a Java program, it tries to assign a type to each
(sub)expression, each method call, each field, and each local variable.
If an appropriate type cannot be found, this exception is raised.
Because AST functions are not declared to raise exceptions, this exception
is designed to be a descendant of RuntimeException
.
Constructor and Description |
---|
ASTResolutionException(java.lang.String className,
java.lang.String fieldOrMethodName)
Construct an exception representing a name resolution failure.
|
public ASTResolutionException(java.lang.String className, java.lang.String fieldOrMethodName)
className
- The name of the class that contains the erroneous
identifier.fieldOrMethodName
- The identifier in the class that cannot
be resolved as a type.