All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.predic8.membrane.annot.model.MainInfo Maven / Gradle / Ivy

There is a newer version: 5.8.0
Show newest version
/* Copyright 2013 predic8 GmbH, www.predic8.com

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License. */
package com.predic8.membrane.annot.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;

import com.predic8.membrane.annot.MCMain;

/**
 * Mirrors {@link MCMain}.
 */
public class MainInfo {
	private TypeElement element;
	private MCMain annotation;

	private List iis = new ArrayList();
	private Map childElementDeclarations = new HashMap();
	private Map elements = new HashMap();
	private Map globals = new HashMap();
	private Map ids = new HashMap();

	public List getInterceptorElements() {
		ArrayList res = new ArrayList(getIis().size());
		for (ElementInfo ii : getIis())
			res.add(ii.getElement());
		return res;
	}

	public TypeElement getElement() {
		return element;
	}

	public void setElement(TypeElement element) {
		this.element = element;
	}

	public MCMain getAnnotation() {
		return annotation;
	}

	public void setAnnotation(MCMain annotation) {
		this.annotation = annotation;
	}

	public List getIis() {
		return iis;
	}

	public Map getElements() {
		return elements;
	}

	public Map getGlobals() {
		return globals;
	}

	public Map getChildElementDeclarations() {
		return childElementDeclarations;
	}

	public Map getIds() {
		return ids;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy