package com.aionemu.commons.configuration.transformers;
import java.util.regex.Pattern;
import com.aionemu.commons.configuration.TransformationTypeInfo;
/**
* Automatic pattern transformer for RegExp resolving
*
* @author SoulKeeper
*/
public class PatternTransformer extends PropertyTransformer<Pattern> {
/**
* Shared instance of this transformer. It's thread-safe so no need of multiple instances
*/
public static final PatternTransformer SHARED_INSTANCE = new PatternTransformer();
@Override
protected Pattern parseObject(String value, TransformationTypeInfo typeInfo) {
return value.isEmpty() ? null : Pattern.compile(value);
}
}
순위 | 닉네임 | 포인트 |
---|---|---|
1 |
![]() |
102,949 |
2 |
![]() |
63,733 |
3 |
![]() |
51,771 |
4 |
![]() |
36,923 |
5 |
![]() |
35,011 |
6 |
![]() |
29,470 |
7 |
![]() |
29,077 |
8 |
![]() |
28,199 |
9 |
![]() |
26,731 |
10 |
![]() |
17,020 |