* Copyright (C) 2010 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
* This library is distributed under a modified BSD license. See the included
* RSTALanguageSupport.License.txt file for details.
package org.fife.rsta.ac.java.rjc.ast;
import org.fife.rsta.ac.java.rjc.lang.Modifiers;
import org.fife.rsta.ac.java.rjc.lexer.Offset;
* Code shared amongst all {@link Member} nodes.
abstract class AbstractMember extends AbstractASTNode implements Member {
private TypeDeclaration parentTypeDec;
protected AbstractMember(String name, Offset start) {
protected AbstractMember(String name, Offset start, Offset end) {
public TypeDeclaration getParentTypeDeclaration() {
public boolean isStatic() {
Modifiers modifiers = getModifiers();
return modifiers!=null && modifiers.isStatic();
public void setParentTypeDeclaration(TypeDeclaration dec) {
throw new InternalError("Parent TypeDeclaration cannot be null");