本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例11: getOldNames
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getOldNames()
{
TCNameList list = elseIfExp.getOldNames();
list.addAll(thenExp.getOldNames());
return list;
}
示例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;
}
示例13: getOldNames
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入方法依赖的package包/类
@Override
public TCNameList getOldNames()
{
TCNameList list = args.getOldNames();
list.addAll(root.getOldNames());
return list;
}
示例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;
}
示例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;
}