type.java

来自「plugin for eclipse」· Java 代码 · 共 56 行

JAVA
56
字号
/*
 * Created on May 9, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package isis.anp.nesc.ot.types;

import isis.anp.nesc.ot.Outline;
import isis.anp.nesc.ot.TypeQualifier;
import isis.anp.nesc.ot.TypeQualifiers;

import java.util.Collection;



/**
 * @author sallai
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public abstract class Type {
	TypeQualifiers typeQualifiers = new TypeQualifiers();
	
	public void addTypeQualifier(TypeQualifier tq) {
		typeQualifiers.add(tq);
	}
	
	public void addTypeQualifiers(Collection tqs) {
		typeQualifiers.addAll(tqs);
	}
	
//	public abstract Type getLeafType();
		
	public Collection getTypeQualifiers() {
		return typeQualifiers;
	}
	
	public boolean isConst() {
		return typeQualifiers.isConst();
	}

	public boolean isVolatile() {
		return typeQualifiers.isVolatile();
	}

	public String getTypeQualifierString() {
		return typeQualifiers.toString();
	}
	
	public abstract void outline(Outline o);
	
	public abstract Object clone();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?