You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @return Cloned object using {@link DataParser}, {@link DataConverter} and {@link SerializationProtocol} or the same object as inserted one if cloning is not possible, for instance when protocol was not found and object is not instance of {@link Cloneable}.
231
231
* This clone function will always prioritized the Protocol variation, regular cloning is used only when there is no protocol registered or exception occurs. <br>
@@ -534,18 +534,21 @@ public static String[] splitValues(String s, int i, int limit, int splittingStra
* @param sequencesToFind | Character sequences to find, index of any of these will be returned accordingly, none of these should contain and object structure!
647
641
*
648
642
* @return Index of first found CharSequence that is not in object meaning it is not in string nor between '{' or '[' and ']' or '}'!
* @param from | The beginning index, where to start the search (should be 0 in most cases).
654
+
* @param to | Ending index of search (exclusive, should be s.length()).
655
+
* @param defaultReturn | Index to return by default (usually -1).
660
656
* @param firstIndex | If true, first index will be returned, if false last index will be returned.
657
+
* @param sequencesToFind | Character sequences to find, index of any of these will be returned accordingly, none of these should contain and object structure!
661
658
*
662
659
* @return Index of first found CharSequence that is not in object meaning it is not in string nor between '{' or '[' and ']' or '}'!
Copy file name to clipboardExpand all lines: SerialX-core/src/main/java/org/ugp/serialx/converters/DataConverter.java
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
packageorg.ugp.serialx.converters;
2
2
3
-
importorg.ugp.serialx.Registry;
4
-
5
3
/**
6
4
* This is DataParser with extended functionality! {@link DataConverter} can also parse data like DataParser but is also capable of converting them back to string!
7
5
* This to string convertation is performed by {@link DataConverter#toString(Object)} and result of this convertation supposed to be parsable by {@link DataConverter#parse(String, Object...)} meaning one converter supposed to be parsing and converting via the same string format!
@@ -15,7 +13,7 @@
15
13
publicinterfaceDataConverterextendsDataParser
16
14
{
17
15
/**
18
-
* @param myHomeRegistry | Registry where this parser is registered provided by {@link DataParser#parseObj(Registry, String, boolean, Class[], Object...)} otherwise it demands on implementation (it should not be null)!
16
+
* @param myHomeRegistry | Registry where this parser is registered provided by {@link ParserRegistry#parse(String, boolean, Class, Object...)} otherwise it demands on implementation (it should not be null)!
19
17
* @param obj | Object to convert into string!
20
18
* @param args | Some additional args. This can be anything and it demands on implementation of DataConverter. Default SerialX API implementation will provide some flags about formating (2 ints)!
* @param myHomeRegistry | Registry where this parser is registered provided by {@link DataParser#parseObj(Registry, String, boolean, Class[], Object...)} otherwise it demands on implementation (it should not be null)!
47
+
* @param myHomeRegistry | Registry where this parser is registered provided by {@link DataParser#parse(String, boolean, Class, Object...)} otherwise it demands on implementation (it should not be null)!
48
48
* @param str | Source string, preferably trimed!
49
49
* @param args | Some additional args. This can be anything and it demands on implementation of DataParser. Default SerialX API implementation will provide one optional argument with {@link Scope} that value was loaded from!
LogProvider.instance.logErr("Invocation of static member \"" + memberName + "\" from class \"" + objClass.getName() + "\" was denied because this feature is disabled by default for security reasons!", null);
123
+
LogProvider.instance.logErr("Invocation of static member \"" + memberName + "\" from class \"" + objClass.getName() + "\" was denied because it was not enabled for this class for security reasons!", null);
* @param myHomeRegistry | Registry where this parser is registered provided by {@link DataParser#parseObj(Registry, String, boolean, Class[], Object...)} otherwise it demands on implementation (it should not be null)!
173
+
* @param myHomeRegistry | Registry where this parser is registered provided by {@link ParserRegistry#parse(String, boolean, Class, Object...)} otherwise it demands on implementation (it should not be null)!
173
174
* @param obj | Object to convert into string!
174
175
* @param preferedProtocol | Protocol to use preferably.
175
176
* @param args | Some additional args. This can be anything and it demands on implementation of DataConverter. Default SerialX API implementation will provide some flags about formating (2 ints)!
@@ -277,23 +278,14 @@ public void setUseBase64IfCan(boolean useBase64IfCan)
277
278
}
278
279
279
280
/**
280
-
* @return True if invocation of static members (:: operator) is allowed (false by default)!
281
-
*
282
-
* @since 1.3.8
283
-
*/
284
-
publicbooleanisAllowStaticMemberInvocation()
285
-
{
286
-
returnallowStaticMemberInvocation;
287
-
}
288
-
289
-
/**
290
-
* @param allowStaticMemberInvocation | Enable/disable the invocation of static members (:: operator) (false by default)!
281
+
* @return Classes that are eligible for public static member invocation (:: operator)!<br>
282
+
* Note: {@link Math} {@link Scope} {@link Double}, {@link Float} and {@link String} are invokable by default! If you want to disable static member invocation completely, call {@link Set#clear()} on this method!
Copy file name to clipboardExpand all lines: SerialX-core/src/main/java/org/ugp/serialx/converters/VariableParser.java
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@
5
5
importstaticorg.ugp.serialx.Utils.splitValues;
6
6
7
7
importorg.ugp.serialx.GenericScope;
8
-
importorg.ugp.serialx.Registry;
9
8
importorg.ugp.serialx.Scope;
10
9
importorg.ugp.serialx.Serializer;
11
10
@@ -51,7 +50,7 @@ public Object getMemberOperator(Object source, Object member)
51
50
}
52
51
53
52
/**
54
-
* @param myHomeRegistry | Registry where this parser is registered provided by {@link DataParser#parseObj(Registry, String, boolean, Class[], Object...)} otherwise it demands on implementation (it should not be null)!
53
+
* @param myHomeRegistry | Registry where this parser is registered provided by {@link ParserRegistry#parse(String, boolean, Class, Object...)} otherwise it demands on implementation (it should not be null)!
55
54
* @param str | Source string, should not be null or empty (preferably with some variables to read)!
56
55
* @param scope | Source scope to read from, can't be null!
57
56
* @param args | Some additional args. This can be anything and it demands on implementation of DataParser.
@@ -112,4 +111,4 @@ else if (newModif = str.endsWith("::new"))
0 commit comments