• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java Alist类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.ximpleware.extended.xpath.Alist的典型用法代码示例。如果您正苦于以下问题:Java Alist类的具体用法?Java Alist怎么用?Java Alist使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

Alist类属于com.ximpleware.extended.xpath包,在下文中一共展示了Alist类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: argCount

点赞 2

import com.ximpleware.extended.xpath.Alist; //导入依赖的package包/类
int argCount(){
	Alist temp = argumentList;
	int count = 0;
	while(temp!=null){
		count++;
		temp = temp.next;
	}
	return count;
}
 

开发者ID:CoolBalance,
项目名称:vtd-xml,
代码行数:10,
代码来源:FuncExpr.java

示例2: concat

点赞 2

import com.ximpleware.extended.xpath.Alist; //导入依赖的package包/类
private String concat(VTDNavHuge vn){
    StringBuffer  sb = new StringBuffer();
    if (argCount()>=2){
		Alist temp = argumentList;
		while(temp!=null){
			sb.append(temp.e.evalString(vn));
			temp = temp.next;
		}
		return sb.toString();
    } else 
        throw new IllegalArgumentException
	("concat()'s argument count is invalid");
}
 

开发者ID:CoolBalance,
项目名称:vtd-xml,
代码行数:14,
代码来源:FuncExpr.java

示例3: requireContextSize

点赞 2

import com.ximpleware.extended.xpath.Alist; //导入依赖的package包/类
public boolean requireContextSize(){
    if (opCode == FuncName.LAST)
        return true;
    else {
        Alist temp = argumentList;
        //boolean b = false;
        while(temp!=null){
            if (temp.e.requireContextSize()){
                return true;
            }
            temp = temp.next;
        }
    }
    return false;
}
 

开发者ID:CoolBalance,
项目名称:vtd-xml,
代码行数:16,
代码来源:FuncExpr.java

示例4: setContextSize

点赞 2

import com.ximpleware.extended.xpath.Alist; //导入依赖的package包/类
public void setContextSize(int size){	
    if (opCode == FuncName.LAST){
        contextSize = size;
        //System.out.println("contextSize: "+size);
    } else {
        Alist temp = argumentList;
        //boolean b = false;
        while(temp!=null){
            temp.e.setContextSize(size);
            temp = temp.next;
        }
    }
}
 

开发者ID:CoolBalance,
项目名称:vtd-xml,
代码行数:14,
代码来源:FuncExpr.java

示例5: setPosition

点赞 2

import com.ximpleware.extended.xpath.Alist; //导入依赖的package包/类
public void setPosition(int pos){
    if (opCode == FuncName.POSITION){
        position = pos;
        //System.out.println("PO: "+size);
    } else {
        Alist temp = argumentList;
        //boolean b = false;
        while(temp!=null){
            temp.e.setPosition(pos);
            temp = temp.next;
        }
    }
}
 

开发者ID:CoolBalance,
项目名称:vtd-xml,
代码行数:14,
代码来源:FuncExpr.java

示例6: FuncExpr

点赞 2

import com.ximpleware.extended.xpath.Alist; //导入依赖的package包/类
public FuncExpr(int oc , Alist list){
	a = 0;
  opCode = oc;
  argumentList = list;
  isBoolean = false;
  isString  = false;
  position = 0;
  //isNodeSet = false;
  isNumerical = false;
  switch(opCode){
		case FuncName.LAST: 			isNumerical = true;break;
		case FuncName.POSITION: 		isNumerical = true;break;
		case FuncName.COUNT: 			isNumerical = true;break;
		case FuncName.LOCAL_NAME: 		isString = true; break;
		case FuncName.NAMESPACE_URI: 	isString = true; break;
		case FuncName.NAME: 			isString = true; break;
		case FuncName.STRING: 			isString = true; break;
		case FuncName.CONCAT: 			isString = true; break;
		case FuncName.STARTS_WITH:		isBoolean= true;break;
		case FuncName.CONTAINS: 		isBoolean= true;break;
		case FuncName.SUBSTRING_BEFORE: isString = true; break;
		case FuncName.SUBSTRING_AFTER: 	isString = true; break;
		case FuncName.SUBSTRING: 		isString = true; break;
		case FuncName.STRING_LENGTH: 	isNumerical = true;break;
		case FuncName.NORMALIZE_SPACE: 	isString = true; break;
		case FuncName.TRANSLATE:	 	isString = true;break;
		case FuncName.BOOLEAN: 			isBoolean =true;break;
		case FuncName.NOT: 			    isBoolean =true;break;
		case FuncName.TRUE: 			isBoolean = true;break;
		case FuncName.FALSE: 			isBoolean = true;break;
		case FuncName.LANG: 			isBoolean = true;break;
		case FuncName.NUMBER:			isNumerical = true;break;
		case FuncName.SUM: 			    isNumerical = true;break;
		case FuncName.FLOOR: 			isNumerical = true;break;
		case FuncName.CEILING: 			isNumerical = true;break;
		case FuncName.ROUND:			isNumerical = true;break;
		case FuncName.ABS:				isNumerical = true;break;
		case FuncName.ROUND_HALF_TO_EVEN :
		    							isNumerical = true;break;
		case FuncName.ROUND_HALF_TO_ODD:
		    							isNumerical = true;break;
		case FuncName.CODE_POINTS_TO_STRING:
		    							isString = true; break;
		case FuncName.COMPARE:			isBoolean= true;break;
		case FuncName.UPPER_CASE:		isString = true; break;
		case FuncName.LOWER_CASE:		isString = true; break;
		case FuncName.ENDS_WITH:		isBoolean= true;break;
		case FuncName.QNAME:			isString = true; break;
		case FuncName.LOCAL_NAME_FROM_QNAME:
		    							isString = true; break;
		case FuncName.NAMESPACE_URI_FROM_QNAME:
		    							isString = true; break;
		case FuncName.NAMESPACE_URI_FOR_PREFIX:
		    							isString = true; break;
		case FuncName.RESOLVE_QNAME:	isString = true; break;
		case FuncName.IRI_TO_URI:    	isString = true; break;
		case FuncName.ESCAPE_HTML_URI:	isString = true; break;
		default:						isString = true; break;
  }	  
}
 

开发者ID:CoolBalance,
项目名称:vtd-xml,
代码行数:61,
代码来源:FuncExpr.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)