本文整理了Java中java.util.regex.Matcher.closeImpl()
方法的一些代码示例,展示了Matcher.closeImpl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matcher.closeImpl()
方法的具体详情如下:
包路径:java.util.regex.Matcher
类名称:Matcher
方法名:closeImpl
暂无
代码示例来源:origin: robovm/robovm
@Override protected void finalize() throws Throwable {
try {
synchronized (this) {
closeImpl(address);
}
} finally {
super.finalize();
}
}
代码示例来源:origin: robovm/robovm
/**
* Sets a new pattern for the {@code Matcher}. Results of a previous find
* get lost. The next attempt to find an occurrence of the {@link Pattern}
* in the string will start at the beginning of the input.
*
* @param pattern
* the new {@code Pattern}.
*
* @return the {@code Matcher} itself.
*/
public Matcher usePattern(Pattern pattern) {
if (pattern == null) {
throw new IllegalArgumentException("pattern == null");
}
this.pattern = pattern;
synchronized (this) {
if (address != 0) {
closeImpl(address);
address = 0; // In case openImpl throws.
}
address = openImpl(pattern.address);
}
if (input != null) {
resetForInput();
}
matchOffsets = new int[(groupCount() + 1) * 2];
matchFound = false;
return this;
}
代码示例来源:origin: com.bugvm/bugvm-rt
@Override protected void finalize() throws Throwable {
try {
synchronized (this) {
closeImpl(address);
}
} finally {
super.finalize();
}
}
代码示例来源:origin: ibinti/bugvm
@Override protected void finalize() throws Throwable {
try {
synchronized (this) {
closeImpl(address);
}
} finally {
super.finalize();
}
}
代码示例来源:origin: com.gluonhq/robovm-rt
@Override protected void finalize() throws Throwable {
try {
synchronized (this) {
closeImpl(address);
}
} finally {
super.finalize();
}
}
代码示例来源:origin: MobiVM/robovm
@Override protected void finalize() throws Throwable {
try {
synchronized (this) {
closeImpl(address);
}
} finally {
super.finalize();
}
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
@Override protected void finalize() throws Throwable {
try {
synchronized (this) {
closeImpl(address);
}
} finally {
super.finalize();
}
}
代码示例来源:origin: FlexoVM/flexovm
@Override protected void finalize() throws Throwable {
try {
synchronized (this) {
closeImpl(address);
}
} finally {
super.finalize();
}
}
代码示例来源:origin: ibinti/bugvm
/**
* Sets a new pattern for the {@code Matcher}. Results of a previous find
* get lost. The next attempt to find an occurrence of the {@link Pattern}
* in the string will start at the beginning of the input.
*
* @param pattern
* the new {@code Pattern}.
*
* @return the {@code Matcher} itself.
*/
public Matcher usePattern(Pattern pattern) {
if (pattern == null) {
throw new IllegalArgumentException("pattern == null");
}
this.pattern = pattern;
synchronized (this) {
if (address != 0) {
closeImpl(address);
address = 0; // In case openImpl throws.
}
address = openImpl(pattern.address);
}
if (input != null) {
resetForInput();
}
matchOffsets = new int[(groupCount() + 1) * 2];
matchFound = false;
return this;
}
代码示例来源:origin: MobiVM/robovm
/**
* Sets a new pattern for the {@code Matcher}. Results of a previous find
* get lost. The next attempt to find an occurrence of the {@link Pattern}
* in the string will start at the beginning of the input.
*
* @param pattern
* the new {@code Pattern}.
*
* @return the {@code Matcher} itself.
*/
public Matcher usePattern(Pattern pattern) {
if (pattern == null) {
throw new IllegalArgumentException("pattern == null");
}
this.pattern = pattern;
synchronized (this) {
if (address != 0) {
closeImpl(address);
address = 0; // In case openImpl throws.
}
address = openImpl(pattern.address);
}
if (input != null) {
resetForInput();
}
matchOffsets = new int[(groupCount() + 1) * 2];
matchFound = false;
return this;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Sets a new pattern for the {@code Matcher}. Results of a previous find
* get lost. The next attempt to find an occurrence of the {@link Pattern}
* in the string will start at the beginning of the input.
*
* @param pattern
* the new {@code Pattern}.
*
* @return the {@code Matcher} itself.
*/
public Matcher usePattern(Pattern pattern) {
if (pattern == null) {
throw new IllegalArgumentException("pattern == null");
}
this.pattern = pattern;
synchronized (this) {
if (address != 0) {
closeImpl(address);
address = 0; // In case openImpl throws.
}
address = openImpl(pattern.address);
}
if (input != null) {
resetForInput();
}
matchOffsets = new int[(groupCount() + 1) * 2];
matchFound = false;
return this;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Sets a new pattern for the {@code Matcher}. Results of a previous find
* get lost. The next attempt to find an occurrence of the {@link Pattern}
* in the string will start at the beginning of the input.
*
* @param pattern
* the new {@code Pattern}.
*
* @return the {@code Matcher} itself.
*/
public Matcher usePattern(Pattern pattern) {
if (pattern == null) {
throw new IllegalArgumentException("pattern == null");
}
this.pattern = pattern;
synchronized (this) {
if (address != 0) {
closeImpl(address);
address = 0; // In case openImpl throws.
}
address = openImpl(pattern.address);
}
if (input != null) {
resetForInput();
}
matchOffsets = new int[(groupCount() + 1) * 2];
matchFound = false;
return this;
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Sets a new pattern for the {@code Matcher}. Results of a previous find
* get lost. The next attempt to find an occurrence of the {@link Pattern}
* in the string will start at the beginning of the input.
*
* @param pattern
* the new {@code Pattern}.
*
* @return the {@code Matcher} itself.
*/
public Matcher usePattern(Pattern pattern) {
if (pattern == null) {
throw new IllegalArgumentException("pattern == null");
}
this.pattern = pattern;
synchronized (this) {
if (address != 0) {
closeImpl(address);
address = 0; // In case openImpl throws.
}
address = openImpl(pattern.address);
}
if (input != null) {
resetForInput();
}
matchOffsets = new int[(groupCount() + 1) * 2];
matchFound = false;
return this;
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Sets a new pattern for the {@code Matcher}. Results of a previous find
* get lost. The next attempt to find an occurrence of the {@link Pattern}
* in the string will start at the beginning of the input.
*
* @param pattern
* the new {@code Pattern}.
*
* @return the {@code Matcher} itself.
*/
public Matcher usePattern(Pattern pattern) {
if (pattern == null) {
throw new IllegalArgumentException("pattern == null");
}
this.pattern = pattern;
synchronized (this) {
if (address != 0) {
closeImpl(address);
address = 0; // In case openImpl throws.
}
address = openImpl(pattern.address);
}
if (input != null) {
resetForInput();
}
matchOffsets = new int[(groupCount() + 1) * 2];
matchFound = false;
return this;
}
内容来源于网络,如有侵权,请联系作者删除!