com.github.antlrjavaparser.api.body
Class TypeDeclaration

java.lang.Object
  extended by com.github.antlrjavaparser.api.Node
      extended by com.github.antlrjavaparser.api.body.BodyDeclaration
          extended by com.github.antlrjavaparser.api.body.TypeDeclaration
Direct Known Subclasses:
AnnotationDeclaration, ClassOrInterfaceDeclaration, EmptyTypeDeclaration, EnumDeclaration

public abstract class TypeDeclaration
extends BodyDeclaration

Author:
Julio Vilmar Gesser

Constructor Summary
TypeDeclaration()
           
TypeDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, List<AnnotationExpr> annotations, JavadocComment javaDoc, int modifiers, String name, List<BodyDeclaration> members)
           
TypeDeclaration(int modifiers, String name)
           
TypeDeclaration(List<AnnotationExpr> annotations, JavadocComment javaDoc, int modifiers, String name, List<BodyDeclaration> members)
           
 
Method Summary
 List<BodyDeclaration> getMembers()
           
 int getModifiers()
          Return the modifiers of this type declaration.
 String getName()
           
 void setMembers(List<BodyDeclaration> members)
           
 void setModifiers(int modifiers)
           
 void setName(String name)
           
 
Methods inherited from class com.github.antlrjavaparser.api.body.BodyDeclaration
getAnnotations, getJavaDoc, setAnnotations, setJavaDoc
 
Methods inherited from class com.github.antlrjavaparser.api.Node
accept, accept, equals, getBeginColumn, getBeginComments, getBeginLine, getData, getEndColumn, getEndComments, getEndLine, getInternalComments, hashCode, setBeginColumn, setBeginComments, setBeginLine, setData, setEndColumn, setEndComments, setEndLine, setInternalComments, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeDeclaration

public TypeDeclaration()

TypeDeclaration

public TypeDeclaration(int modifiers,
                       String name)

TypeDeclaration

public TypeDeclaration(List<AnnotationExpr> annotations,
                       JavadocComment javaDoc,
                       int modifiers,
                       String name,
                       List<BodyDeclaration> members)

TypeDeclaration

public TypeDeclaration(int beginLine,
                       int beginColumn,
                       int endLine,
                       int endColumn,
                       List<AnnotationExpr> annotations,
                       JavadocComment javaDoc,
                       int modifiers,
                       String name,
                       List<BodyDeclaration> members)
Method Detail

getMembers

public final List<BodyDeclaration> getMembers()

getModifiers

public final int getModifiers()
Return the modifiers of this type declaration.

Returns:
modifiers
See Also:
ModifierSet

getName

public final String getName()

setMembers

public void setMembers(List<BodyDeclaration> members)

setModifiers

public final void setModifiers(int modifiers)

setName

public final void setName(String name)


Copyright © 2013. All Rights Reserved.