| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
_baseString |
protected int |
_beginIndex |
protected String |
_content |
protected int |
_endIndex |
protected Srl.ScopeInfo |
_next |
protected Srl.ScopeInfo |
_previous |
protected String |
_scope |
protected String |
beginMark |
protected String |
endMark |
| コンストラクタと説明 |
|---|
ScopeInfo() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
String |
getBaseString() |
int |
getBeginIndex() |
String |
getBeginMark() |
String |
getContent() |
int |
getEndIndex() |
String |
getEndMark() |
Srl.ScopeInfo |
getNext() |
Srl.ScopeInfo |
getPrevious() |
String |
getScope() |
boolean |
isBeforeScope(int index) |
boolean |
isInScope(int index) |
String |
replaceContentOnBaseString(String toStr)
Replace all contents with the replacement on base string.
|
String |
replaceContentOnBaseString(String fromStr,
String toStr)
Replace keywords in contents with the replacement on base string.
|
String |
replaceInterspaceOnBaseString(String fromStr,
String toStr)
Replace keywords in interspaces with the replacement on base string.
|
void |
setBaseString(String baseString) |
void |
setBeginIndex(int beginIndex) |
void |
setBeginMark(String beginMark) |
void |
setContent(String content) |
void |
setEndIndex(int endIndex) |
void |
setEndMark(String endMark) |
void |
setNext(Srl.ScopeInfo next) |
void |
setPrevious(Srl.ScopeInfo previous) |
void |
setScope(String scope) |
String |
substringInterspaceToNext()
Cut string of next interspace.
|
String |
substringInterspaceToPrevious()
Cut string of previous interspace.
|
String |
substringScopeToNext()
Cut string of next interspace with scope.
|
String |
substringScopeToPrevious()
Cut string of previous interspace with scope.
|
protected List<Srl.ScopeInfo> |
takeScopeList() |
String |
toString() |
protected String _baseString
protected int _beginIndex
protected int _endIndex
protected String beginMark
protected String endMark
protected String _content
protected String _scope
protected Srl.ScopeInfo _previous
protected Srl.ScopeInfo _next
public boolean isBeforeScope(int index)
index - The index to be determined, 0 origin.public boolean isInScope(int index)
index - The index to be determined, 0 origin.public String replaceContentOnBaseString(String toStr)
e.g. base-string: "sea:(hangar)mystic, land:(showbase)oneman" if "stage", returns "sea:(stage)mystic, land:(stage)oneman"
toStr - The string as replacement. (NotNull)public String replaceContentOnBaseString(String fromStr, String toStr)
e.g. base-string: "sea:(hangar)mystic, land:(showbase)oneman" if "a", "b", returns "sea:(hbngbr)mystic, land:(showbbse)oneman"
fromStr - The string replaced keyword. (NotNull)toStr - The string as replacement. (NotNull)public String replaceInterspaceOnBaseString(String fromStr, String toStr)
e.g. base-string: "sea:(hangar)mystic, land:(showbase)oneman" if "a", "b", returns "seb:(hangar)mystic, lbnd:(showbase)onembn"
fromStr - The string replaced keyword. (NotNull)toStr - The string as replacement. (NotNull)protected List<Srl.ScopeInfo> takeScopeList()
public String substringInterspaceToPrevious()
e.g. base-string: "sea:(hangar)mystic, land:(showbase)oneman" if first scope, returns "sea" if second scope, returns "mystic, land:"
public String substringInterspaceToNext()
e.g. base-string: "sea:(hangar)mystic, land:(showbase)oneman" if first scope, returns "mystic, land:" if second scope, returns "oneman"
public String substringScopeToPrevious()
e.g. base-string: "sea:(hangar)mystic, land:(showbase)oneman" if first scope, returns "sea:(hangar)" if second scope, returns "(hangar)mystic, land:(showbase)"
public String substringScopeToNext()
e.g. base-string: "sea:(hangar)mystic, land:(showbase)oneman" if first scope, returns "(hangar)mystic, land:(showbase)" if second scope, returns "(showbase)oneman"
public String getBaseString()
public void setBaseString(String baseString)
public int getBeginIndex()
public void setBeginIndex(int beginIndex)
public int getEndIndex()
public void setEndIndex(int endIndex)
public String getBeginMark()
public void setBeginMark(String beginMark)
public String getEndMark()
public void setEndMark(String endMark)
public String getContent()
public void setContent(String content)
public String getScope()
public void setScope(String scope)
public Srl.ScopeInfo getPrevious()
public void setPrevious(Srl.ScopeInfo previous)
public Srl.ScopeInfo getNext()
public void setNext(Srl.ScopeInfo next)
Copyright © 2014–2021 The DBFlute Project. All rights reserved.