Class DefaultJTextSourceLog
java.lang.Object
net.thevpc.common.textsource.log.impl.DefaultJTextSourceLog
- All Implemented Interfaces:
Cloneable, Iterable<JSourceMessage>, JMessageList, JTextSourceLog
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(JSourceMessage message) voidaddAll(Iterable<JSourceMessage> messages) voidvoidclear()copy()voidvoiderror(String id, String group, JTextSourceToken token, String message) intintgetErrorCountAtLine(int line) intvoidinfo(String id, String group, JTextSourceToken token, String message) booleaniterator()voidvoidvoidvoidprint()voidvoidprintlnMessage(JSourceMessage jSourceMessage) protected DefaultJTextSourceLogsetOperationName(String operationName) intsize()toArray()toList()voidwarn(String id, String group, JTextSourceToken token, String message) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
DEFAULT_OPERATION_NAME
- See Also:
-
-
Constructor Details
-
DefaultJTextSourceLog
-
-
Method Details
-
getOperationName
-
setOperationName
-
info
- Specified by:
infoin interfaceJMessageList
-
error
- Specified by:
errorin interfaceJMessageList
-
warn
- Specified by:
warnin interfaceJMessageList
-
cinfo
public void cinfo(String id, String group, JTextSourceToken token, String message, Object... params) - Specified by:
cinfoin interfaceJMessageList
-
cerror
public void cerror(String id, String group, JTextSourceToken token, String message, Object... params) - Specified by:
cerrorin interfaceJMessageList
-
cwarn
public void cwarn(String id, String group, JTextSourceToken token, String message, Object... params) - Specified by:
cwarnin interfaceJMessageList
-
jinfo
public void jinfo(String id, String group, JTextSourceToken token, String message, Object... params) - Specified by:
jinfoin interfaceJMessageList
-
jerror
public void jerror(String id, String group, JTextSourceToken token, String message, Object... params) - Specified by:
jerrorin interfaceJMessageList
-
jwarn
public void jwarn(String id, String group, JTextSourceToken token, String message, Object... params) - Specified by:
jwarnin interfaceJMessageList
-
add
- Specified by:
addin interfaceJMessageList
-
getErrorCountAtLine
public int getErrorCountAtLine(int line) - Specified by:
getErrorCountAtLinein interfaceJTextSourceLog
-
getErrorCount
public int getErrorCount()- Specified by:
getErrorCountin interfaceJTextSourceLog
-
getWarningCount
public int getWarningCount()- Specified by:
getWarningCountin interfaceJTextSourceLog
-
clear
- Specified by:
clearin interfaceJMessageList- Specified by:
clearin interfaceJTextSourceLog
-
copy
- Specified by:
copyin interfaceJTextSourceLog
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessfulin interfaceJTextSourceLog
-
toArray
- Specified by:
toArrayin interfaceJTextSourceLog
-
toList
- Specified by:
toListin interfaceJTextSourceLog
-
size
public int size()- Specified by:
sizein interfaceJTextSourceLog
-
iterator
- Specified by:
iteratorin interfaceIterable<JSourceMessage>
-
printlnMessage
-
print
public void print()- Specified by:
printin interfaceJTextSourceLog
-
addAll
- Specified by:
addAllin interfaceJMessageList
-