public class HeredocSharedImpl extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
cleanMarker(String marker,
boolean ignoredLeadingTabs)
Returned the marker cleaned out of the meaningless characters suchs as quotes or
$ |
static boolean |
isEvaluatingMarker(String marker)
Tells if the passed string is an evaluating marker.
|
static int |
startMarkerTextOffset(String markerText,
boolean ignoredLeadingTabs)
Returns the start offset of the passed marker text
|
static String |
wrapMarker(String newName,
String originalMarker)
Replaces the marker name in the original marker by the passed new name.
|
public static String cleanMarker(String marker, boolean ignoredLeadingTabs)
$marker - the marker to be cleanedignoredLeadingTabs - true to ignore possible leading tabs. If false, the returned
marker may contain those leading tabs.public static int startMarkerTextOffset(String markerText, boolean ignoredLeadingTabs)
markerText - a marker textignoredLeadingTabs - true to request that leading tabs are ignored. If not, the text fragment
identified by the offsets may contain the tabs.public static boolean isEvaluatingMarker(String marker)
" or '), a backslash or a $.marker - a stringtrue if this is an evaluating marker, false if notpublic static String wrapMarker(String newName, String originalMarker)
newName - a new name for the markeroriginalMarker - the original marker textCopyright © 2018–2019. All rights reserved.