abstractdeclarator.java

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

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

import isis.anp.common.TNode;

import java.util.ArrayList;

import java.util.List;


/**
 * @author sallai
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class AbstractDeclarator {
	TNode defNode = null;
	PointerGroup pointerGroup = null;
	AbstractDeclarator nestedDecl = null;
	// the declarator may have one or more parameter type lists and array constructors: they are stored in the paList
	ArrayList paList = new ArrayList();
	ArrayList arrayConstructors = new ArrayList();
	ArrayList parameterTypeLists = new ArrayList();	
	
	/**
	 * @return Returns the defNode.
	 */
	public TNode getDefNode() {
		return defNode;
	}
	/**
	 * @param defNode The defNode to set.
	 */
	public void setDefNode(TNode defNode) {
		this.defNode = defNode;
	}
	/**
	 * @return Returns the pointerGroup.
	 */
	public PointerGroup getPointerGroup() {
		return pointerGroup;
	}
	/**
	 * @param pointerGroup The pointerGroup to set.
	 */
	public void setPointerGroup(PointerGroup pointerGroup) {
		this.pointerGroup = pointerGroup;
	}

	public void addArrayConstructor(ArrayConstructor ac) {
		this.paList.add(ac);
		this.arrayConstructors.add(ac);
	}
	
	/**
	 * @return Returns the nestedDecl.
	 */
	public AbstractDeclarator getNestedDecl() {
		return nestedDecl;
	}

	/**
	 * @param nestedDecl The nestedDecl to set.
	 */
	public void setNestedDecl(AbstractDeclarator nestedDecl) {
		this.nestedDecl = nestedDecl;
	}

	/**
	 * @param nestedDecl The nestedDecl to set.
	 */
	public void addNestedDecl(AbstractDeclarator nestedDecl) {
		this.nestedDecl = nestedDecl;
	}
	
	public void addParameterTypeList(ParameterTypeList ptl) {
		this.paList.add(ptl);
		this.parameterTypeLists.add(ptl);
	}
	
	public List getArrayConstructors() {
		return arrayConstructors;
	}
	
	public List getParameterTypeLists() {
		return parameterTypeLists;
	}
	
	public List getPAList() {
		return paList;
	}
}

⌨️ 快捷键说明

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