2014-09-02 08:33:54 +00:00
|
|
|
package de.dhbwstuttgart.syntaxtree;
|
2015-10-23 14:22:44 +00:00
|
|
|
|
2014-09-02 08:33:54 +00:00
|
|
|
import de.dhbwstuttgart.core.IItemWithOffset;
|
2016-12-15 14:45:23 +00:00
|
|
|
import de.dhbwstuttgart.typecheck.JavaClassName;
|
2014-09-05 09:49:31 +00:00
|
|
|
import de.dhbwstuttgart.syntaxtree.modifier.Modifiers;
|
2014-09-02 08:33:54 +00:00
|
|
|
import de.dhbwstuttgart.syntaxtree.statement.Block;
|
|
|
|
import de.dhbwstuttgart.syntaxtree.statement.Expr;
|
|
|
|
import de.dhbwstuttgart.syntaxtree.type.RefType;
|
2013-10-18 11:33:46 +00:00
|
|
|
|
2016-12-07 13:32:48 +00:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
2015-05-22 11:50:43 +00:00
|
|
|
|
2016-09-09 22:40:17 +00:00
|
|
|
/**
|
|
|
|
* Stellt jede Art von Klasse dar. Auch abstrakte Klassen und Interfaces
|
|
|
|
*/
|
2016-12-15 23:00:37 +00:00
|
|
|
public class Class extends GTVDeclarationContext implements IItemWithOffset, Generic
|
2013-10-18 11:33:46 +00:00
|
|
|
{
|
2016-12-02 00:23:01 +00:00
|
|
|
|
2014-02-12 01:12:12 +00:00
|
|
|
protected Modifiers modifiers;
|
2016-09-09 22:40:17 +00:00
|
|
|
protected JavaClassName name;
|
2013-10-18 11:33:46 +00:00
|
|
|
private Block class_block;
|
2016-12-07 13:32:48 +00:00
|
|
|
private List<Field> fielddecl = new ArrayList<>();
|
2014-06-25 15:30:31 +00:00
|
|
|
private GenericDeclarationList genericClassParameters;
|
2014-07-16 12:35:12 +00:00
|
|
|
private int offset;
|
2016-03-22 12:17:56 +00:00
|
|
|
private RefType superClass;
|
2016-12-07 13:32:48 +00:00
|
|
|
protected boolean isInterface;
|
|
|
|
private List<RefType> implementedInterfaces;
|
2013-10-18 11:33:46 +00:00
|
|
|
|
2014-09-02 16:49:19 +00:00
|
|
|
|
2013-10-18 11:33:46 +00:00
|
|
|
}
|