当前节点是否有轴 abc('param1','param2'):: 或者abc::

@return 是否是轴节点
184736
public boolean hasAxis() {
        int end = nextXpathNodeSeperator();
        if (end == -1) {
            end = queue.length() - 1;
        }
        for (int i = pos; i < end - 1; i++) {
            if (queue.charAt(i) == ':' && queue.charAt(i + 1) == ':') {
                String axisStr = queue.substring(pos, i);
                TokenQueue axisTokenQueue = new TokenQueue(axisStr);
                // 轴允许字母,-,_
                String axisName = axisTokenQueue.consumeCssIdentifier();
                if (StringUtils.isEmpty(axisName)) {
                    return false;
                }
                axisTokenQueue.consumeWhitespace();
                if (axisTokenQueue.isEmpty()) {
                    return true;// 无参轴
                }
                if (axisTokenQueue.matches("(")) {
                    String functionParams = axisTokenQueue.chompBalanced('(', ')');
                    if (functionParams == null) {
                        return false;// 格式不合法
                    }
                    axisTokenQueue.consumeWhitespace();
                    // 含参轴
                    return axisTokenQueue.isEmpty();
                }
                return false;
            }
        }
        return false;
    }
936245
@SuppressWarnings({ "unchecked", "rawtypes" })
	public static <T> int compare(T o1, T o2, boolean isNullGreater) {
		if (o1 == o2) {
			return 0;
		} else if (null == o1) {// null 排在后面
			return isNullGreater ? 1 : -1;
		} else if (null == o2) {
			return isNullGreater ? -1 : 1;
		}
		
		if(o1 instanceof Comparable && o2 instanceof Comparable) {
			//如果bean可比较，直接比较bean
			return ((Comparable)o1).compareTo(o2);
		}
		
		if(o1.equals(o2)) {
			return 0;
		}
		
		int result = Integer.compare(o1.hashCode(), o2.hashCode());
		if(0 == result) {
			result = compare(o1.toString(), o2.toString());
		}
		
		return result;
	}
958586
function (matrix1, matrix2) {
            matrix1 = matrix1 || [1, 0, 0, 1];
            matrix2 = matrix2 || [1, 0, 0, 1];
            // 旋转变换 4 个参数
            if (matrix1.length === 4) {
                return [
                    matrix1[0] * matrix2[0] + matrix1[2] * matrix2[1],
                    matrix1[1] * matrix2[0] + matrix1[3] * matrix2[1],
                    matrix1[0] * matrix2[2] + matrix1[2] * matrix2[3],
                    matrix1[1] * matrix2[2] + matrix1[3] * matrix2[3]
                ];
            }
            // 旋转位移变换, 6 个参数

            return [
                matrix1[0] * matrix2[0] + matrix1[2] * matrix2[1],
                matrix1[1] * matrix2[0] + matrix1[3] * matrix2[1],
                matrix1[0] * matrix2[2] + matrix1[2] * matrix2[3],
                matrix1[1] * matrix2[2] + matrix1[3] * matrix2[3],

                matrix1[0] * matrix2[4] + matrix1[2] * matrix2[5] + matrix1[4],
                matrix1[1] * matrix2[4] + matrix1[3] * matrix2[5] + matrix1[5]
            ];
        }
943544
private Map<String, String> getParameters(String param) {

        if (CmsStringUtil.isNotEmpty(param)) {
            return CmsStringUtil.splitAsMap(param, "|", "=");
        }
        return Collections.emptyMap();
    }
155737
public Set<Entry<String, String>> getParameters() {
		Map<String,String> retval = new HashMap<String,String> ();
		for(Entry<String, String> nameValue : this.parameters.entrySet()) {
			retval.put(nameValue.getKey(), (RFC2396UrlDecoder.decode(nameValue.getValue())));
		}
		return retval.entrySet();
	}
422210
@Override
    public String parameters() {
        return Op.join(" ", bottomLeft, topLeft, topRight, bottomRight)
                + (!Op.isEq(height, 1.0) ? " " + Op.str(height) : "");
    }
982873
public String [] getParamNames() {
		Vector<String> v = new Vector<>();
		// Get the params names from the query
		SortedSet<String> pns = this.getParamNameSet(HtmlParameter.Type.url);
		Iterator<String> iterator = pns.iterator();
		while (iterator.hasNext()) {
			String name = iterator.next();
			if (name != null) {
				v.add(name);
			}
		}
		if (getRequestHeader().getMethod().equalsIgnoreCase(HttpRequestHeader.POST)) {
			// Get the param names from the POST
			pns = this.getParamNameSet(HtmlParameter.Type.form);
		    iterator = pns.iterator();
		    while (iterator.hasNext()) {
				String name = iterator.next();
		        if (name != null) {
		        	v.add(name);
		        }
				
			}
		}
		String [] a = new String [v.size()];
		v.toArray(a);
		return a;
	}
223875
@Override
    public String parameters() {
        return Op.join(" ", vertexA, vertexB, vertexC, vertexD)
                + (!Op.isEq(height, 1.0) ? " " + Op.str(height) : "");
    }
1025939
public Map<String, String> getParams() {

        Map<String, String> params = new HashMap<>(1);
        params.put(PARAM_COLLAPSED, Boolean.TRUE.toString());
        return params;
    }
320522
def p_parameter_1(p):
    
    args = {}
    if len(p) == 4:
        args['is_array'] = True
        args['array_size'] = p[3]
    p[0] = CIMParameter(p[2], p[1], **args)
238393
public boolean matchesFunction() {
        if (remainingLength() < 3) {
            return false;
        }
        char first = peek();
        if (!Character.isLetter(first) && first != '_') {
            return false;
        }

        int start = pos + 1;
        for (; start < queue.length(); start++) {// xpath的函数名称里面,允许有 "-"
            if (Character.isLetterOrDigit(queue.charAt(start)) || queue.charAt(start) == '-') {
                continue;
            }
            return queue.charAt(start) == '(' && queue.indexOf(')', start) > 0;
        }
        return false;
    }
294130
function getSelectors(selector){

	let ary = [];
	for ( let i=0,isCls=false,tmp='',len=selector.length,ch; i<len; i++ ) {
		ch = selector.charAt(i);
		if ( ch == '.' ) {
			// 类名开始，已有串即使空白，都直接推入数组
			ary.push(tmp);
			tmp = ch;
			isCls = true;	// 当前是类名
		}else{
			if ( BREAKS.indexOf(ch) >= 0 ) {
				// 选择器分隔字符
				if ( isCls ) {
					// 之前是类名，推入数组
					ary.push(tmp);
					tmp = ch;
					isCls = false; // 当前不是类名了
				}else{
					// 之前不是类名，继续拼接
					tmp += ch;
				}
			}else{
				// 不是分隔字符，继续拼接
				tmp += ch;
			}
		}

		if ( i == len-1 ) {
			// 最后一位，已有串即使空白，都直接推入数组
			ary.push(tmp);
		}
	}

	return ary.filter(v => v !== ''); // 过滤去除纯粹的空串
}
1182843
function ParamList(/* type | Param() arguments , ... */) {
		var params = [];
		var minSize = 0;
		var maxSize = 0;
		var easy = true;
		for (var i = 0, args; i < arguments.length; i++) {
			args = (arguments[i] instanceof Array) ? arguments[i] : [ arguments[i] ];
			params[i] = Param.parse.apply(null, args);
			maxSize += params[i].maxSize;

			// @tag 20180222 
			// 如果参数允许缺省，则在整个实参列表中占据的最小长度为 0。
			minSize += params[i].absent ? 0 : params[i].minSize;

			// 如果形参可缺省，或者为多占位或可变长度，则不适用简易模式。
			easy = easy && !( params[i].absent || params[i].arrayed );
		}

		this.easy = easy;
		this.minSize = minSize;
		this.maxSize = maxSize;

		this.params = params;
	}
85624
public List<Basic<Attributes<T>>> getAllBasic()
   {
      List<Basic<Attributes<T>>> list = new ArrayList<Basic<Attributes<T>>>();
      List<Node> nodeList = childNode.get("basic");
      for(Node node: nodeList)
      {
         Basic<Attributes<T>>  type = new BasicImpl<Attributes<T>>(this, "basic", childNode, node);
         list.add(type);
      }
      return list;
   }
552750
public String[] getOptions() {
    int       	i;
    Vector    	result;
    String	tmpStr;

    result = new Vector();

    for (i = 0; i < m_Parameters.length; i++) {
      result.add("-search");
      tmpStr =   m_Parameters[i].getClass().getName() + " "
               + Utils.joinOptions(m_Parameters[i].getOptions());
      result.add(tmpStr);
    }

    return (String[]) result.toArray(new String[result.size()]);
  }
1041782
public java.util.Map<String, String> getExprs() {
        if (exprs == null) {
            exprs = new com.amazonaws.internal.SdkInternalMap<String, String>();
        }
        return exprs;
    }
68799
public long numParams() {
        int ret = 0;
        for (Map.Entry<String, INDArray> entry : params.entrySet()) {
            ret += entry.getValue().length();
        }
        return ret;
    }