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


Java TCNameList类代码示例

本文整理汇总了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);
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:26,代码来源:TCClassDefinition.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:23,代码来源:TCExplicitFunctionDefinition.java

示例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);
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:22,代码来源:Delegate.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:13,代码来源:TCObjectPattern.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:11,代码来源:INMapUnionPattern.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:13,代码来源:INMapPattern.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:10,代码来源:INMapletPattern.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:8,代码来源:TCRenamedDefinition.java

示例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
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:13,代码来源:INPatternList.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:13,代码来源:INPattern.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:13,代码来源:TCRecordPattern.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:9,代码来源:POPerSyncDefinition.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:12,代码来源:INExpressionList.java

示例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;
}
 
开发者ID:nickbattle,项目名称:FJ-VDMJ,代码行数:9,代码来源:INSubseqExpression.java

示例15: 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


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