public class TreeWalkerAuditEvent extends java.lang.Object
TreeWalker event for audit.| Modifier and Type | Field and Description |
|---|---|
private FileContents |
fileContents
The file contents.
|
private java.lang.String |
fileName
Filename event associated with.
|
private DetailAST |
rootAst
Root ast element.
|
private Violation |
violation
Violation associated with the event.
|
| Constructor and Description |
|---|
TreeWalkerAuditEvent(FileContents fileContents,
java.lang.String fileName,
Violation violation,
DetailAST rootAst)
Creates a new
TreeWalkerAuditEvent instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Gets the column associated with the violation.
|
int |
getColumnCharIndex()
Gets the column char index associated with the violation.
|
FileContents |
getFileContents()
Returns contents of the file.
|
java.lang.String |
getFileName()
Returns name of file being audited.
|
int |
getLine()
Return the line number on the source file where the event occurred.
|
java.lang.String |
getMessage()
Return the violation associated to the event.
|
java.lang.String |
getModuleId()
Returns id of module.
|
DetailAST |
getRootAst()
Gets the root element of the AST tree.
|
java.lang.String |
getSourceName()
Gets the name of the source for the violation.
|
int |
getTokenType()
Gets the token type of the violation.
|
Violation |
getViolation()
Gets the violation.
|
private final java.lang.String fileName
private final FileContents fileContents
public TreeWalkerAuditEvent(FileContents fileContents, java.lang.String fileName, Violation violation, DetailAST rootAst)
TreeWalkerAuditEvent instance.fileContents - contents of the file associated with the eventfileName - file associated with the eventviolation - the actual violationrootAst - root AST element DetailAST of the filepublic java.lang.String getFileName()
public FileContents getFileContents()
public Violation getViolation()
public int getLine()
public java.lang.String getMessage()
public int getColumn()
public int getColumnCharIndex()
public java.lang.String getModuleId()
public java.lang.String getSourceName()
public int getTokenType()
public DetailAST getRootAst()
Copyright © 2001-2022. All Rights Reserved.