public class TreeWalkerAuditEvent extends Object
TreeWalker
event for audit.Constructor and Description |
---|
TreeWalkerAuditEvent(FileContents fileContents,
String fileName,
LocalizedMessage localizedMessage,
DetailAST rootAst)
Creates a new
TreeWalkerAuditEvent instance. |
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Gets the column associated with the message.
|
int |
getColumnCharIndex()
Gets the column char index associated with the message.
|
FileContents |
getFileContents()
Returns contents of the file.
|
String |
getFileName()
Returns name of file being audited.
|
int |
getLine()
Return the line number on the source file where the event occurred.
|
LocalizedMessage |
getLocalizedMessage()
Gets the localized message.
|
String |
getMessage()
Return the message associated to the event.
|
String |
getModuleId()
Returns id of module.
|
DetailAST |
getRootAst()
Gets the root element of the AST tree.
|
String |
getSourceName()
Gets the name of the source for the message.
|
int |
getTokenType()
Gets the token type of the message.
|
public TreeWalkerAuditEvent(FileContents fileContents, String fileName, LocalizedMessage localizedMessage, DetailAST rootAst)
TreeWalkerAuditEvent
instance.fileContents
- contents of the file associated with the eventfileName
- file associated with the eventlocalizedMessage
- the actual messagerootAst
- root AST element DetailAST
of the filepublic String getFileName()
public FileContents getFileContents()
public LocalizedMessage getLocalizedMessage()
public int getLine()
public String getMessage()
public int getColumn()
public int getColumnCharIndex()
public String getModuleId()
public String getSourceName()
public int getTokenType()
public DetailAST getRootAst()
Copyright © 2001–2018. All rights reserved.