-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fill printed with toString() objects with violet color
- Loading branch information
Showing
34 changed files
with
309 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 6 additions & 12 deletions
18
ulyp-common/src/main/java/com/ulyp/core/recorders/PrintedObjectRecord.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
package com.ulyp.core.recorders; | ||
|
||
import com.ulyp.core.Type; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class PrintedObjectRecord extends ObjectRecord { | ||
|
||
private final StringObjectRecord printed; | ||
private final String printedObject; | ||
private final int identityHashCode; | ||
|
||
protected PrintedObjectRecord(StringObjectRecord printed, Type type, int identityHashCode) { | ||
protected PrintedObjectRecord(String printedObject, Type type, int identityHashCode) { | ||
super(type); | ||
|
||
this.printed = printed; | ||
this.printedObject = printedObject; | ||
this.identityHashCode = identityHashCode; | ||
} | ||
|
||
public StringObjectRecord getPrinted() { | ||
return printed; | ||
} | ||
|
||
public int getIdentityHashCode() { | ||
return identityHashCode; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return printed.toString(); | ||
return printedObject; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
ulyp-ui/src/main/kotlin/com/ulyp/ui/elements/recording/objects/RecordedObjectView.kt
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
ulyp-ui/src/main/kotlin/com/ulyp/ui/elements/recording/objects/RecordedPrintedObjectView.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 20 additions & 20 deletions
40
...ecording/objects/RecordedByteArrayView.kt → ...ts/recording/objects/RenderedByteArray.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
package com.ulyp.ui.elements.recording.objects | ||
|
||
import com.ulyp.core.recorders.arrays.ByteArrayRecord | ||
import com.ulyp.ui.util.Style | ||
import com.ulyp.ui.util.StyledText.of | ||
|
||
class RecordedByteArrayView(record: ByteArrayRecord) : RecordedObjectView() { | ||
|
||
init { | ||
children.addAll( | ||
listOf( | ||
of("byte", Style.CALL_TREE_TYPE_NAME), | ||
of("[", Style.CALL_TREE_COLLECTION_BRACKET), | ||
of(record.length.toString(), Style.CALL_TREE_TYPE_NAME), | ||
of("]", Style.CALL_TREE_COLLECTION_BRACKET), | ||
of("@", Style.CALL_TREE_IDENTITY, Style.SMALLER_TEXT), | ||
of(Integer.toHexString(record.hashCode), Style.CALL_TREE_IDENTITY, Style.SMALLER_TEXT) | ||
) | ||
) | ||
} | ||
package com.ulyp.ui.elements.recording.objects | ||
|
||
import com.ulyp.core.recorders.arrays.ByteArrayRecord | ||
import com.ulyp.ui.util.Style | ||
import com.ulyp.ui.util.StyledText.of | ||
|
||
class RenderedByteArray(record: ByteArrayRecord) : RenderedObject() { | ||
|
||
init { | ||
children.addAll( | ||
listOf( | ||
of("byte", Style.CALL_TREE_TYPE_NAME), | ||
of("[", Style.CALL_TREE_COLLECTION_BRACKET), | ||
of(record.length.toString(), Style.CALL_TREE_TYPE_NAME), | ||
of("]", Style.CALL_TREE_COLLECTION_BRACKET), | ||
of("@", Style.CALL_TREE_IDENTITY, Style.SMALLER_TEXT), | ||
of(Integer.toHexString(record.hashCode), Style.CALL_TREE_IDENTITY, Style.SMALLER_TEXT) | ||
) | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.