Package fr.formiko.usuel
Class Info
java.lang.Object
fr.formiko.usuel.Info
New info, warning, error class call to print message.
It should replace erreur.java.
Example:
It should replace erreur.java.
Example:
new Info().setType(2).setClassDepth(3).setContent("wrong name").setFix("set to \" \"")
- Author:
- Hydrolien
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private String
private boolean
private String
private Info.InfoType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
print()
Main function that print this.setClassDepth(int classDepth)
to fix a stats.txt issue with public [...] cla ss [...]setContent(String content)
setFatal(boolean fatal)
setType(int i)
Set type from an int.setType(Info.InfoType type)
-
Field Details
-
type
-
-
fix
-
fatal
private boolean fatal -
classDepth
private int classDepth
-
-
Constructor Details
-
Info
public Info()Main contructor.
All variables should be set with setter or will stay at default value. -
Info
Secondary contructor.- Parameters:
content
- content of the Info
-
-
Method Details
-
setType
Set type from an int.
0=info, 1=warning, 2=error. -
setType
-
setContent
-
setFix
-
setFatal
-
setClassDepth
to fix a stats.txt issue with public [...] cla ss [...] -
print
public void print()Main function that print this.
Print will be colored & look like this:
[INFO] $content. Fixed by : $fix
-