本文整理汇总了Java中com.fujitsu.vdmj.tc.lex.TCNameList类的典型用法代码示例。如果您正苦于以下问题:Java TCNameList类的具体用法?Java TCNameList怎么用?Java TCNameList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TCNameList类属于com.fujitsu.vdmj.tc.lex包,在下文中一共展示了TCNameList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TCClassDefinition
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
/**
* Create a class definition with the given name, list of superclass names,
* and list of local definitions.
* @param className
* @param supernames
* @param definitions
*/
public TCClassDefinition(TCNameToken className, TCNameList supernames, TCDefinitionList definitions)
{
super(Pass.DEFS, className.getLocation(), className, NameScope.CLASSNAME);
this.supernames = supernames;
this.definitions = definitions;
this.used = true;
this.superdefs = new TCClassList();
this.supertypes = new TCTypeList();
this.superInheritedDefinitions = new TCDefinitionList();
this.localInheritedDefinitions = new TCDefinitionList();
this.allInheritedDefinitions = new TCDefinitionList();
// Classes are all effectively public types
this.setAccessSpecifier(new TCAccessSpecifier(false, false, Token.PUBLIC, false));
this.definitions.setClassDefinition(this);
}
示例2: TCExplicitFunctionDefinition
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
public TCExplicitFunctionDefinition(TCAccessSpecifier accessSpecifier, TCNameToken name,
TCNameList typeParams, TCFunctionType type,
TCPatternListList parameters, TCExpression body,
TCExpression precondition,
TCExpression postcondition, boolean typeInvariant, TCNameToken measure)
{
super(Pass.DEFS, name.getLocation(), name, NameScope.GLOBAL);
this.accessSpecifier = accessSpecifier;
this.typeParams = typeParams;
this.type = type;
this.paramPatternList = parameters;
this.precondition = precondition;
this.postcondition = postcondition;
this.body = body;
this.isTypeInvariant = typeInvariant;
this.measure = measure;
this.isCurried = parameters.size() > 1;
type.definitions = new TCDefinitionList(this);
type.instantiated = typeParams == null ? null : false;
}
示例3: hasDelegate
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
public boolean hasDelegate()
{
if (!delegateChecked)
{
delegateChecked = true;
try
{
String classname = name.replace('_', '.');
delegateClass = this.getClass().getClassLoader().loadClass(classname);
delegateMethods = new HashMap<String, Method>();
delegateArgs = new HashMap<String, TCNameList>();
}
catch (ClassNotFoundException e)
{
// Fine
}
}
return (delegateClass != null);
}
示例4: getAllVariableNames
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
@Override
public TCNameList getAllVariableNames()
{
TCNameList list = new TCNameList();
for (TCNamePatternPair npp: fieldlist)
{
list.addAll(npp.pattern.getAllVariableNames());
}
return list;
}
示例5: 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;
}
示例6: getAllVariableNames
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
@Override
public TCNameList getAllVariableNames()
{
TCNameList list = new TCNameList();
for (INMapletPattern p: maplets)
{
list.addAll(p.getAllVariableNames());
}
return list;
}
示例7: getAllVariableNames
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
public TCNameList getAllVariableNames()
{
TCNameList list = new TCNameList();
list.addAll(from.getAllVariableNames());
list.addAll(to.getAllVariableNames());
return list;
}
示例8: getVariableNames
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
@Override
public TCNameList getVariableNames()
{
TCNameList both = new TCNameList(name);
both.add(def.name);
return both;
}
示例9: isConstrained
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
public boolean isConstrained()
{
TCNameList names = new TCNameList();
for (INPattern p: this)
{
if (p.isConstrained()) return true; // NB. OR
names.addAll(p.getAllVariableNames());
}
return names.hasDuplicates(); // No duplicates => not constrained
}
示例10: 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 final TCNameList getVariableNames()
{
TCNameSet set = new TCNameSet();
set.addAll(getAllVariableNames());
TCNameList list = new TCNameList();
list.addAll(set);
return list;
}
示例11: 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;
}
示例12: getProofObligations
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
@Override
public ProofObligationList getProofObligations(POContextStack ctxt)
{
ctxt.push(new PONameContext(new TCNameList(opname)));
ProofObligationList list = guard.getProofObligations(ctxt);
ctxt.pop();
return list;
}
示例13: 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;
}
示例14: getOldNames
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
@Override
public TCNameList getOldNames()
{
TCNameList list = seq.getOldNames();
list.addAll(from.getOldNames());
list.addAll(to.getOldNames());
return list;
}
示例15: getOldNames
import com.fujitsu.vdmj.tc.lex.TCNameList; //导入依赖的package包/类
@Override
public TCNameList getOldNames()
{
TCNameList list = elseIfExp.getOldNames();
list.addAll(thenExp.getOldNames());
return list;
}