Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Woodstox 6.4.0 - Source Code Files
Woodstox 6.4.0 Source Code Files are provided at the Woodstox GitHub Website.
You can download them from the "src/main/java" folder.
You can also browse Woodstox Source Code files below:
✍: FYIcenter
⏎ com/ctc/wstx/dtd/StarModel.java
package com.ctc.wstx.dtd;
import java.util.*;
/**
* Model class that represents any number of repetitions of its submodel
* (including no repetitions).
*/
public class StarModel
extends ModelNode
{
ModelNode mModel;
/*
///////////////////////////////////////////////////
// Life-cycle
///////////////////////////////////////////////////
*/
public StarModel(ModelNode model) {
super();
mModel = model;
}
/*
///////////////////////////////////////////////////
// Public API
///////////////////////////////////////////////////
*/
/**
* Method that has to create a deep copy of the model, without
* sharing any of existing Objects.
*/
@Override
public ModelNode cloneModel() {
return new StarModel(mModel.cloneModel());
}
@Override
public boolean isNullable() {
return true;
}
@Override
public void indexTokens(List<TokenModel> tokens) {
mModel.indexTokens(tokens);
}
@Override
public void addFirstPos(BitSet pos) {
mModel.addFirstPos(pos);
}
@Override
public void addLastPos(BitSet pos) {
mModel.addLastPos(pos);
}
@Override
public void calcFollowPos(BitSet[] followPosSets)
{
// First, let's let sub-model do its stuff
mModel.calcFollowPos(followPosSets);
/* And then add the closure for the model (since sub-model
* can 'follow itself' as many times as it needs to)
*/
BitSet foll = new BitSet();
mModel.addFirstPos(foll);
BitSet toAddTo = new BitSet();
mModel.addLastPos(toAddTo);
int ix = 0; // need to/can skip the null entry (index 0)
while ((ix = toAddTo.nextSetBit(ix+1)) >= 0) {
/* Ok; so token at this index needs to have follow positions
* added...
*/
followPosSets[ix].or(foll);
}
}
@Override
public String toString() {
return mModel.toString() + "*";
}
}
⏎ com/ctc/wstx/dtd/StarModel.java
Or download all of them as a single archive file:
File name: woodstox-core-6.4.0-fyi.zip File size: 552992 bytes Release date: 2022-10-25 Download
⇒ woodstox-core-6.4.0.jar - Woodstox Core 6.4.0
⇐ What Is Woodstox XML Processing
2023-01-29, ≈46🔥, 0💬
Popular Posts:
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...
The Web Services Description Language for Java Toolkit (WSDL4J), Release 1.6.2, allows the creation,...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...
What Is HttpComponents httpcore-4.4.6.jar? HttpComponents httpcore-4.4.6.jar is the JAR file for Apa...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...