当前位置: 首页>>代码示例>>Java>>正文


Java TCNameList.addAll方法代码示例

本文整理汇总了Java中com.fujitsu.vdmj.tc.lex.TCNameList.addAll方法的典型用法代码示例。如果您正苦于以下问题:Java TCNameList.addAll方法的具体用法?Java TCNameList.addAll怎么用?Java TCNameList.addAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.fujitsu.vdmj.tc.lex.TCNameList的用法示例。


在下文中一共展示了TCNameList.addAll方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getOldNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getOldNames()
{
	TCNameList list = ifExp.getOldNames();
	list.addAll(thenExp.getOldNames());

	for (INElseIfExpression elif: elseList)
	{
		list.addAll(elif.getOldNames());
	}

	if (elseExp != null)
	{
		list.addAll(elseExp.getOldNames());
	}

	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:19,代码来源:INIfExpression.java

示例2: getAllVariableNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getAllVariableNames()
{
	TCNameList list = new TCNameList();

	for (POPattern p: plist)
	{
		list.addAll(p.getAllVariableNames());
	}

	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:13,代码来源:PORecordPattern.java

示例3: getAllVariableNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getAllVariableNames()
{
	TCNameList list = new TCNameList();

	list.addAll(left.getAllVariableNames());
	list.addAll(right.getAllVariableNames());

	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:11,代码来源:INMapUnionPattern.java

示例4: getOldNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getOldNames()
{
	TCNameList list = new TCNameList();

	for (INMultipleBind mb: bindList)
	{
		list.addAll(mb.getOldNames());
	}

	list.addAll(predicate.getOldNames());
	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:14,代码来源:INExistsExpression.java

示例5: getAllVariableNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getAllVariableNames()
{
	TCNameList list = new TCNameList();

	for (TCPattern p: plist)
	{
		list.addAll(p.getAllVariableNames());
	}

	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:13,代码来源:TCRecordPattern.java

示例6: getAllVariableNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
public TCNameList getAllVariableNames()
{
	TCNameList list = new TCNameList();

	for (INPattern p: this)
	{
		list.addAll(p.getAllVariableNames());
	}

	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:12,代码来源:INPatternList.java

示例7: getVariableNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
/**
 * Get a set of names for the pattern's variables. Note that if the
 * pattern includes duplicate variable names, these are collapse into one.
 */
public TCNameList getVariableNames()
{
	TCNameSet set = new TCNameSet();
	set.addAll(getAllVariableNames());
	TCNameList list = new TCNameList();
	list.addAll(set);
	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:13,代码来源:POPattern.java

示例8: getOldNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getOldNames()
{
	TCNameList list = record.getOldNames();

	for (INRecordModifier rm: modifiers)
	{
		list.addAll(rm.getOldNames());
	}

	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:13,代码来源:INMuExpression.java

示例9: getOldNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
public TCNameList getOldNames()
{
	TCNameList list = new TCNameList();

	for (INExpression exp: this)
	{
		list.addAll(exp.getOldNames());
	}

	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:12,代码来源:INExpressionList.java

示例10: getVariableNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
public TCNameList getVariableNames()
{
	TCNameList variableNames = new TCNameList();

	for (TCDefinition d: this)
	{
		variableNames.addAll(d.getVariableNames());
	}

	return variableNames;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:12,代码来源:TCDefinitionList.java

示例11: getOldNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getOldNames()
{
	TCNameList list = elseIfExp.getOldNames();
	list.addAll(thenExp.getOldNames());
	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:8,代码来源:INElseIfExpression.java

示例12: getOldNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getOldNames()
{
	TCNameList list = first.getOldNames();
	list.addAll(bind.getOldNames());

	if (predicate != null)
	{
		list.addAll(predicate.getOldNames());
	}

	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:14,代码来源:INSeqCompExpression.java

示例13: getOldNames

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getOldNames()
{
	TCNameList list = args.getOldNames();
	list.addAll(root.getOldNames());
	return list;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:8,代码来源:INApplyExpression.java

示例14: getProofObligations

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public ProofObligationList getProofObligations(POContextStack ctxt)
{
	ProofObligationList obligations = new ProofObligationList();
	TCNameList pids = new TCNameList();

	for (POPattern p: parameterPatterns)
	{
		pids.addAll(p.getVariableNames());
	}

	if (pids.hasDuplicates() || !parameterPatterns.alwaysMatches())
	{
		obligations.add(new ParameterPatternObligation(this, ctxt));
	}

	if (precondition != null)
	{
		obligations.addAll(precondition.getProofObligations(ctxt));
	}

	if (postcondition != null)
	{
		obligations.addAll(postcondition.getProofObligations(ctxt));
		obligations.add(new OperationPostConditionObligation(this, ctxt));
	}

	obligations.addAll(body.getProofObligations(ctxt));

	if (isConstructor &&
		classDefinition != null &&
		classDefinition.invariant != null)
	{
		obligations.add(new StateInvariantObligation(this, ctxt));
	}

	if (!isConstructor &&
		!TypeComparator.isSubType(actualResult, type.result))
	{
		obligations.add(new SubTypeObligation(this, actualResult, ctxt));
	}

	return obligations;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:45,代码来源:POExplicitOperationDefinition.java

示例15: getProofObligations

import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public ProofObligationList getProofObligations(POContextStack ctxt)
{
	ProofObligationList obligations = new ProofObligationList();
	TCNameList pids = new TCNameList();
	boolean matchNeeded = false;

	for (POPatternListTypePair pltp: parameterPatterns)
	{
		for (POPattern p: pltp.patterns)
		{
			pids.addAll(p.getVariableNames());
		}
		
		if (!pltp.patterns.alwaysMatches())
		{
			matchNeeded = true;
		}
	}

	if (pids.hasDuplicates() || matchNeeded)
	{
		obligations.add(new ParameterPatternObligation(this, ctxt));
	}

	if (precondition != null)
	{
		obligations.addAll(precondition.getProofObligations(ctxt));
	}

	if (postcondition != null)
	{
		if (body != null)	// else satisfiability, below
		{
			ctxt.push(new POFunctionDefinitionContext(this, false));
			obligations.add(new FuncPostConditionObligation(this, ctxt));
			ctxt.pop();
		}

		ctxt.push(new POFunctionResultContext(this));
		obligations.addAll(postcondition.getProofObligations(ctxt));
		ctxt.pop();
	}

	if (body == null)
	{
		if (postcondition != null)
		{
			ctxt.push(new POFunctionDefinitionContext(this, false));
			obligations.add(new SatisfiabilityObligation(this, ctxt));
			ctxt.pop();
		}
	}
	else
	{
		ctxt.push(new POFunctionDefinitionContext(this, true));
   		obligations.addAll(body.getProofObligations(ctxt));

		if (isUndefined ||
			!TypeComparator.isSubType(actualResult, type.result))
		{
			obligations.add(new SubTypeObligation(
				this, type.result, actualResult, ctxt));
		}

		ctxt.pop();
	}

	return obligations;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:71,代码来源:POImplicitFunctionDefinition.java


注:本文中的com.fujitsu.vdmj.tc.lex.TCNameList.addAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。