com.kero.security.lang.lexems.KsdlLexemBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Kero-Security Show documentation
Show all versions of Kero-Security Show documentation
Kero-Security is a library for statically controlling access to properties of objects / classes.
The newest version!
package com.kero.security.lang.lexems;
import java.util.regex.Pattern;
import com.kero.security.lang.tokens.KsdlToken;
public abstract class KsdlLexemBase implements KsdlLexem {
private String pattern;
public KsdlLexemBase(String pattern) {
this.pattern = pattern;
}
@Override
public boolean isMatch(CharSequence data) {
return Pattern.matches(pattern, data);
}
@Override
public String getPattern() {
return this.pattern;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy