Package org.jruby.ext.ripper
Class StringTerm
java.lang.Object
org.jruby.ext.ripper.StrTerm
org.jruby.ext.ripper.StringTerm
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final charprotected org.jcodings.Encodingprivate final charprivate intprivate intprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ByteListcreateByteList(RipperLexer lexer) private intendFound(RipperLexer lexer) private voidescaped(RipperLexer lexer, LexerSource src, ByteList buffer) intgetFlags()private voidmixedEscape(RipperLexer lexer, org.jcodings.Encoding foundEncoding, org.jcodings.Encoding parserEncoding) private voidparseEscapeIntoBuffer(RipperLexer lexer, LexerSource src, ByteList buffer) intparseString(RipperLexer lexer, LexerSource src) intparseStringIntoBuffer(RipperLexer lexer, LexerSource src, ByteList buffer, org.jcodings.Encoding enc) private booleansimple_re_meta(int c) private voidvalidateRegexp(RipperLexer lexer)
-
Field Details
-
flags
private int flags -
begin
private final char begin -
end
private final char end -
nest
private int nest -
regexpFragments
-
regexpDynamic
private boolean regexpDynamic -
encodingOut
protected org.jcodings.Encoding encodingOut
-
-
Constructor Details
-
StringTerm
public StringTerm(int flags, int begin, int end)
-
-
Method Details
-
getFlags
public int getFlags() -
createByteList
-
endFound
- Throws:
IOException
-
validateRegexp
- Throws:
IOException
-
parseString
- Specified by:
parseStringin classStrTerm- Throws:
IOException
-
mixedEscape
private void mixedEscape(RipperLexer lexer, org.jcodings.Encoding foundEncoding, org.jcodings.Encoding parserEncoding) -
parseStringIntoBuffer
public int parseStringIntoBuffer(RipperLexer lexer, LexerSource src, ByteList buffer, org.jcodings.Encoding enc) throws IOException - Throws:
IOException
-
simple_re_meta
private boolean simple_re_meta(int c) -
escaped
- Throws:
IOException
-
parseEscapeIntoBuffer
private void parseEscapeIntoBuffer(RipperLexer lexer, LexerSource src, ByteList buffer) throws IOException - Throws:
IOException
-