public class JavaRegExpHost extends java.lang.Object implements RegExpLanguageHost
RegExpLanguageHost.Lookbehind
Modifier and Type | Field and Description |
---|---|
protected static java.util.EnumSet<RegExpGroup.Type> |
SUPPORTED_NAMED_GROUP_TYPES |
EMPTY_COMPLETION_ITEMS_ARRAY, EMPTY_NAMED_GROUP_TYPES
Constructor and Description |
---|
JavaRegExpHost() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllPropertyValues, supportsPropertySyntax
protected static final java.util.EnumSet<RegExpGroup.Type> SUPPORTED_NAMED_GROUP_TYPES
public boolean supportsInlineOptionFlag(char flag, PsiElement context)
supportsInlineOptionFlag
in interface RegExpLanguageHost
public boolean characterNeedsEscaping(char c)
characterNeedsEscaping
in interface RegExpLanguageHost
public boolean supportsNamedCharacters(RegExpNamedCharacter namedCharacter)
supportsNamedCharacters
in interface RegExpLanguageHost
public boolean supportsPerl5EmbeddedComments()
supportsPerl5EmbeddedComments
in interface RegExpLanguageHost
public boolean supportsPossessiveQuantifiers()
supportsPossessiveQuantifiers
in interface RegExpLanguageHost
public boolean supportsPythonConditionalRefs()
supportsPythonConditionalRefs
in interface RegExpLanguageHost
public boolean supportsNamedGroupSyntax(RegExpGroup group)
supportsNamedGroupSyntax
in interface RegExpLanguageHost
public boolean supportsNamedGroupRefSyntax(RegExpNamedGroupRef ref)
supportsNamedGroupRefSyntax
in interface RegExpLanguageHost
public java.util.EnumSet<RegExpGroup.Type> getSupportedNamedGroupTypes(RegExpElement context)
getSupportedNamedGroupTypes
in interface RegExpLanguageHost
public boolean isValidGroupName(java.lang.String name, RegExpGroup group)
isValidGroupName
in interface RegExpLanguageHost
public boolean supportsExtendedHexCharacter(RegExpChar regExpChar)
supportsExtendedHexCharacter
in interface RegExpLanguageHost
public boolean supportsBoundary(RegExpBoundary boundary)
supportsBoundary
in interface RegExpLanguageHost
public boolean supportsSimpleClass(RegExpSimpleClass simpleClass)
supportsSimpleClass
in interface RegExpLanguageHost
public boolean supportsLiteralBackspace(RegExpChar aChar)
supportsLiteralBackspace
in interface RegExpLanguageHost
public boolean isValidPropertyName(java.lang.String name)
isValidPropertyName
in interface RegExpLanguageHost
public boolean isValidPropertyValue(java.lang.String propertyName, java.lang.String value)
isValidPropertyValue
in interface RegExpLanguageHost
public boolean isValidGeneralCategory(java.lang.String value)
public boolean isValidCategory(java.lang.String category)
isValidCategory
in interface RegExpLanguageHost
public boolean isValidNamedCharacter(RegExpNamedCharacter namedCharacter)
isValidNamedCharacter
in interface RegExpLanguageHost
public RegExpLanguageHost.Lookbehind supportsLookbehind(RegExpGroup lookbehindGroup)
supportsLookbehind
in interface RegExpLanguageHost
public java.lang.Integer getQuantifierValue(RegExpNumber number)
getQuantifierValue
in interface RegExpLanguageHost
number
- the number element to extract the value frompublic java.lang.String[] [] getAllKnownProperties()
getAllKnownProperties
in interface RegExpLanguageHost
public java.lang.String getPropertyDescription(java.lang.String name)
getPropertyDescription
in interface RegExpLanguageHost
public java.lang.String[] [] getKnownCharacterClasses()
getKnownCharacterClasses
in interface RegExpLanguageHost