public abstract class AbstractDiagnosticVisitor extends Object implements IDiagnosticsVisitor
IDiagnosticsVisitor. Rather
than implementing IDiagnosticsVisitor clients of AET should sub-class
this class so that methods can be added to IDiagnosticsVisitor without
having to update all implementations of IDiagnosticsVisitor.| Constructor and Description |
|---|
AbstractDiagnosticVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
incorrectNumberOfParameterNames(MethodInfo methodInfo)
A
MethodInfo has a different number of parameter names than
parameter types. |
void |
nativeMethodWithMethodBody(MethodInfo methodInfo,
MethodBodyInfo methodBodyInfo)
A
MethodInfo for a native method also has an associated
MethodBodyInfo. |
void |
operandStackUnderflow(MethodBodyInfo methodBodyInfo,
IFlowgraph cfg,
IBasicBlock block,
int instructionIndex)
An underflow of operand stack was detected in a basic block in a method.
|
void |
scopeStackUnderflow(MethodBodyInfo methodBodyInfo,
IFlowgraph cfg,
IBasicBlock block,
int instructionIndex)
An underflow of scope stack was detected in a basic block in a method.
|
void |
scriptInitWithRequiredArguments(ScriptInfo scriptInfo,
MethodInfo methodInfo)
A
MethodInfo for the init method of a ScriptInfo has
required arguments. |
void |
tooManyDefaultParameters(MethodInfo methodInfo)
A
MethodInfo has too many default parameters. |
void |
unreachableBlock(MethodBodyInfo methodBodyInfo,
IFlowgraph cfg,
IBasicBlock block)
A basic block in a method has been found to be unreachable.
|
public void operandStackUnderflow(MethodBodyInfo methodBodyInfo, IFlowgraph cfg, IBasicBlock block, int instructionIndex)
IDiagnosticsVisitoroperandStackUnderflow in interface IDiagnosticsVisitormethodBodyInfo - MethodBodyInfo for the method body with the
stack underflow.cfg - IFlowgraph for the method body with the stack
underflow.block - IBasicBlock in the IFlowgraph that contains
the stack underflow.instructionIndex - The index of the instruction in the IBasicBlock
that contains the stack underflow.public void scopeStackUnderflow(MethodBodyInfo methodBodyInfo, IFlowgraph cfg, IBasicBlock block, int instructionIndex)
IDiagnosticsVisitorscopeStackUnderflow in interface IDiagnosticsVisitormethodBodyInfo - MethodBodyInfo for the method body with the
stack underflow.cfg - IFlowgraph for the method body with the stack
underflow.block - IBasicBlock in the IFlowgraph that contains
the stack underflow.instructionIndex - The index of the instruction in the IBasicBlock
that contains the stack underflow.public void unreachableBlock(MethodBodyInfo methodBodyInfo, IFlowgraph cfg, IBasicBlock block)
IDiagnosticsVisitorunreachableBlock in interface IDiagnosticsVisitormethodBodyInfo - MethodBodyInfo for the method body
with the unreachable block.cfg - IFlowgraph for the method body with the
unreachable block.block - IBasicBlock in the IFlowgraph
that contains the unreachable block.public void tooManyDefaultParameters(MethodInfo methodInfo)
IDiagnosticsVisitorMethodInfo has too many default parameters.tooManyDefaultParameters in interface IDiagnosticsVisitormethodInfo - The MethodInfo that has too many default
parameters.public void incorrectNumberOfParameterNames(MethodInfo methodInfo)
IDiagnosticsVisitorMethodInfo has a different number of parameter names than
parameter types.incorrectNumberOfParameterNames in interface IDiagnosticsVisitormethodInfo - The MethodInfo that has the incorrect number of
parameter names.public void nativeMethodWithMethodBody(MethodInfo methodInfo, MethodBodyInfo methodBodyInfo)
IDiagnosticsVisitorMethodInfo for a native method also has an associated
MethodBodyInfo.nativeMethodWithMethodBody in interface IDiagnosticsVisitormethodInfo - The MethodInfo that is marked as a native
method.methodBodyInfo - The MethodBodyInfo associated with the
native method.public void scriptInitWithRequiredArguments(ScriptInfo scriptInfo, MethodInfo methodInfo)
IDiagnosticsVisitorMethodInfo for the init method of a ScriptInfo has
required arguments.scriptInitWithRequiredArguments in interface IDiagnosticsVisitorscriptInfo - The ScriptInfo whose init method has required
arguments.methodInfo - The MethodInfo for the init method of the
specified ScriptInfo.Copyright © 2016 The Apache Software Foundation. All rights reserved.