public class HandlerList
extends java.lang.Object
TypeAnalyzer
during the traversal of the AST.Constructor and Description |
---|
HandlerList() |
Modifier and Type | Method and Description |
---|---|
void |
addAliasHandler(AliasHandler handler)
Add an alias handler to the list.
|
void |
addAssignmentHandler(AssignmentHandler handler)
Add an assignment handler to the list.
|
void |
addClassHandler(ClassHandler handler)
Add a class declaration handler to the list.
|
void |
addConstructorHandler(ConstructorHandler handler)
Add a constructor handler to the list.
|
void |
addCrossAnalysisHandler(CrossAnalysisHandler handler)
Add a cross-analysis handler to the list.
|
void |
addFieldDeclarationHandler(FieldDeclarationHandler handler)
Add a field declaration handler to the list.
|
void |
addMethodDeclarationHandler(MethodDeclarationHandler handler)
Add a method declaration handler to the list.
|
java.util.List<AliasHandler> |
getAliasHandlers()
Get the list of alias handlers.
|
java.util.List<AssignmentHandler> |
getAssignmentHandlers()
Get the list of assignment handlers.
|
java.util.List<ClassHandler> |
getClassHandlers()
Get the list of class declaration handlers.
|
java.util.List<ConstructorHandler> |
getConstructorHandlers()
Get the list of constructor handlers.
|
java.util.List<CrossAnalysisHandler> |
getCrossAnalysisHandlers()
Get the list of cross-analysis handlers.
|
java.util.List<FieldDeclarationHandler> |
getFieldDeclarationHandlers()
Get the list of field declaration handlers.
|
java.util.List<MethodDeclarationHandler> |
getMethodDeclarationHandlers()
Get the list of method declaration handlers.
|
boolean |
hasAliasHandler()
Test if there is any alias handler.
|
boolean |
hasAssignmentHandler()
Test if there is any assignment handler.
|
boolean |
hasClassHandler()
Test if there is any class declaration handler.
|
boolean |
hasConstructorHandler()
Test is there is any constructor handler.
|
boolean |
hasCrossAnalysisHandler()
Test is there is any cross-analysis handler.
|
boolean |
hasFieldDeclarationHandler()
Test is there is any field declaration handler.
|
boolean |
hasMethodDeclarationHandler()
Test is there is any method declaration handler.
|
void |
removeAliasHandler(AliasHandler handler)
Remove an alias handler.
|
void |
removeAssignmentHandler(AssignmentHandler handler)
Remove an assignment handler.
|
void |
removeClassHandler(ClassHandler handler)
Remove a class declaration handler.
|
void |
removeConstructorHandler(ConstructorHandler handler)
Remove a constructor handler.
|
void |
removeCrossAnalysisHandler(CrossAnalysisHandler handler)
Remove a cross-analysis handler.
|
void |
removeFieldDeclarationHandler(FieldDeclarationHandler handler)
Remove a field declaration handler.
|
void |
removeMethodDeclarationHandler(MethodDeclarationHandler handler)
Remove a method declaration handler.
|
public void addAliasHandler(AliasHandler handler)
handler
- The alias handler.AliasHandler
public void addAssignmentHandler(AssignmentHandler handler)
handler
- The assignment handler.AssignmentHandler
public void addClassHandler(ClassHandler handler)
handler
- The class declaration handler.ClassHandler
public void addConstructorHandler(ConstructorHandler handler)
handler
- The constructor handler.ConstructorHandler
public void addCrossAnalysisHandler(CrossAnalysisHandler handler)
handler
- The cross-analysis handler.CrossAnalysisHandler
public void addFieldDeclarationHandler(FieldDeclarationHandler handler)
handler
- The field declaration handler.FieldDeclarationHandler
public void addMethodDeclarationHandler(MethodDeclarationHandler handler)
handler
- The method declaration handler.MethodDeclarationHandler
public java.util.List<AliasHandler> getAliasHandlers()
public java.util.List<AssignmentHandler> getAssignmentHandlers()
public java.util.List<ClassHandler> getClassHandlers()
public java.util.List<ConstructorHandler> getConstructorHandlers()
public java.util.List<CrossAnalysisHandler> getCrossAnalysisHandlers()
public java.util.List<FieldDeclarationHandler> getFieldDeclarationHandlers()
public java.util.List<MethodDeclarationHandler> getMethodDeclarationHandlers()
public boolean hasAliasHandler()
public boolean hasAssignmentHandler()
public boolean hasClassHandler()
public boolean hasConstructorHandler()
public boolean hasCrossAnalysisHandler()
public boolean hasFieldDeclarationHandler()
public boolean hasMethodDeclarationHandler()
public void removeAliasHandler(AliasHandler handler)
handler
- The alias handler to be removed.public void removeAssignmentHandler(AssignmentHandler handler)
handler
- The assignment handler to be removed.public void removeClassHandler(ClassHandler handler)
handler
- The class declaration handler to be removed.public void removeConstructorHandler(ConstructorHandler handler)
handler
- The constructor handler to be removed.public void removeCrossAnalysisHandler(CrossAnalysisHandler handler)
handler
- The cross-analysis handler to be removed.public void removeFieldDeclarationHandler(FieldDeclarationHandler handler)
handler
- The field declaration handler to be removed.public void removeMethodDeclarationHandler(MethodDeclarationHandler handler)
handler
- The method declaration handler to be removed.