java.lang.Object
coneforest.psylla.core.PsyRegExp
The representation of
regexp
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextAction
Context action of theregexp
operator.Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPE
-
Constructor Summary
ConstructorsConstructorDescriptionPsyRegExp
(PsyTextual oTextual) Constructs a newregexp
from the character sequence. -
Method Summary
Modifier and TypeMethodDescriptionstatic PsyRegExp
parseLiteral
(String image) Returns the syntactic representation of this object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
Field Details
-
PSY_REGEXP
Context action of theregexp
operator.
-
-
Constructor Details
-
PsyRegExp
Constructs a newregexp
from the character sequence.- Parameters:
cs
- the character sequence.- Throws:
PsyInvalidRegExpException
- when a syntax error in a regular-expression pattern occured.
-
PsyRegExp
- Throws:
PsyInvalidRegExpException
-
-
Method Details
-
getPattern
-
toSyntaxString
Description copied from interface:PsyObject
Returns the syntactic representation of this object.- Specified by:
toSyntaxString
in interfacePsyObject
- Returns:
- the syntactic representation of this object.
-
parseLiteral
public static PsyRegExp parseLiteral(String image) throws PsyInvalidRegExpException, PsySyntaxErrorException
-