本文整理汇总了Java中com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet类的典型用法代码示例。如果您正苦于以下问题:Java AbstractTranslet类的具体用法?Java AbstractTranslet怎么用?Java AbstractTranslet使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbstractTranslet类属于com.sun.org.apache.xalan.internal.xsltc.runtime包,在下文中一共展示了AbstractTranslet类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stringValue
import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; //导入依赖的package包/类
/**
* Get the string or numeric value of a specific level key for this sort
* element. The value is extracted from the DOM if it is not already in
* our sort key vector.
*/
private final Comparable stringValue(int level) {
// Get value from our array if possible
if (_scanned <= level) {
AbstractTranslet translet = _settings.getTranslet();
Locale[] locales = _settings.getLocales();
String[] caseOrder = _settings.getCaseOrders();
// Get value from DOM if accessed for the first time
final String str = extractValueFromDOM(_dom, _node, level,
translet, _last);
final Comparable key =
StringComparable.getComparator(str, locales[level],
_collators[level],
caseOrder[level]);
_values[_scanned++] = key;
return(key);
}
return((Comparable)_values[level]);
}
示例2: TransformerImpl
import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; //导入依赖的package包/类
protected TransformerImpl(Translet translet, Properties outputProperties,
int indentNumber, TransformerFactoryImpl tfactory)
{
_translet = (AbstractTranslet) translet;
_properties = createOutputProperties(outputProperties);
_propertiesClone = (Properties) _properties.clone();
_indentNumber = indentNumber;
_tfactory = tfactory;
_useServicesMechanism = _tfactory.useServicesMechnism();
_accessExternalStylesheet = (String)_tfactory.getAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET);
_accessExternalDTD = (String)_tfactory.getAttribute(XMLConstants.ACCESS_EXTERNAL_DTD);
_securityManager = (XMLSecurityManager)_tfactory.getAttribute(XalanConstants.SECURITY_MANAGER);
_readerManager = XMLReaderManager.getInstance(_useServicesMechanism);
_readerManager.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, _accessExternalDTD);
_readerManager.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, _isSecureProcessing);
_readerManager.setProperty(XalanConstants.SECURITY_MANAGER, _securityManager);
//_isIncremental = tfactory._incremental;
}
示例3: numericValue
import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; //导入依赖的package包/类
private final Double numericValue(int level) {
// Get value from our vector if possible
if (_scanned <= level) {
AbstractTranslet translet = _settings.getTranslet();
// Get value from DOM if accessed for the first time
final String str = extractValueFromDOM(_dom, _node, level,
translet, _last);
Double num;
try {
num = new Double(str);
}
// Treat number as NaN if it cannot be parsed as a double
catch (NumberFormatException e) {
num = new Double(Double.NEGATIVE_INFINITY);
}
_values[_scanned++] = num;
return(num);
}
return((Double)_values[level]);
}
示例4: next
import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; //导入依赖的package包/类
public int next() {
final int last = _nodes.cardinality();
final int currentNode = _currentNode;
final AbstractTranslet translet = _translet;
for (int index = _currentIndex; index < last; ) {
final int position = _docOrder ? index + 1 : last - index;
final int node = _nodes.at(index++); // note increment
if (_filter.test(node, position, last, currentNode, translet,
this)) {
_currentIndex = index;
return returnNode(node);
}
}
return END;
}
示例5: computePositionOfLast
import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; //导入依赖的package包/类
private int computePositionOfLast() {
final int last = _nodes.cardinality();
final int currNode = _currentNode;
final AbstractTranslet translet = _translet;
int lastPosition = _position;
for (int index = _currentIndex; index < last; ) {
final int position = _docOrder ? index + 1 : last - index;
int nodeIndex = _nodes.at(index++); // note increment
if (_filter.test(nodeIndex, position, last, currNode, translet,
this)) {
lastPosition++;
}
}
return lastPosition;
}
示例6: document
import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; //导入依赖的package包/类
private static DTMAxisIterator document(DTMAxisIterator arg1,
String baseURI,
AbstractTranslet translet, DOM dom)
throws Exception
{
UnionIterator union = new UnionIterator(dom);
int node = DTM.NULL;
while ((node = arg1.next()) != DTM.NULL) {
String uri = dom.getStringValueX(node);
//document(node-set) if true; document(node-set,node-set) if false
if (baseURI == null) {
baseURI = dom.getDocumentURI(node);
if (!SystemIDResolver.isAbsoluteURI(baseURI))
baseURI = SystemIDResolver.getAbsoluteURIFromRelative(baseURI);
}
union.addIterator(document(uri, baseURI, translet, dom));
}
return(union);
}
示例7: numericValue
import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; //导入依赖的package包/类
private final Double numericValue(int level) {
// Get value from our vector if possible
if (_scanned <= level) {
AbstractTranslet translet = _settings.getTranslet();
// Get value from DOM if accessed for the first time
final String str = extractValueFromDOM(_dom, _node, level,
translet, _last);
Double num;
try {
num = Double.parseDouble(str);
}
// Treat number as NaN if it cannot be parsed as a double
catch (NumberFormatException e) {
num = Double.NEGATIVE_INFINITY;
}
_values[_scanned++] = num;
return(num);
}
return((Double)_values[level]);
}