mirror of
https://github.com/Minres/RDL-Editor.git
synced 2025-12-19 10:34:47 +00:00
Iniital checkin
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.minres.rdl.converter;
|
||||
|
||||
import org.eclipse.xtext.conversion.impl.AbstractLexerBasedConverter;
|
||||
import org.eclipse.xtext.nodemodel.INode;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class STRValueConverter extends AbstractLexerBasedConverter<String> {
|
||||
@Override
|
||||
protected String toEscapedString(final String value) {
|
||||
return (("\"" + value) + "\"");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toValue(final String string, final INode node) {
|
||||
int _length = string.length();
|
||||
int _minus = (_length - 1);
|
||||
return string.substring(1, _minus);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user