Package com.javacc.parser.tree
Interface TypeDeclaration
-
- All Superinterfaces:
ClassOrInterfaceBodyDeclaration,Comparable<Node>,Node,freemarker.template.TemplateModel,freemarker.template.TemplateNodeModel,freemarker.template.TemplateScalarModel
- All Known Implementing Classes:
AnnotationTypeDeclaration,ClassDeclaration,EmptyDeclaration,EnumDeclaration,InterfaceDeclaration
public interface TypeDeclaration extends Node, ClassOrInterfaceBodyDeclaration
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.javacc.parser.Node
Node.Visitor
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidaddAnnotations(Set<Annotation> annotations)default voidaddElements(List<ClassOrInterfaceBodyDeclaration> elements)default voidaddExtends(ObjectType type)default voidaddImplements(ObjectType type)default ClassOrInterfaceBodygetBody()default CompilationUnitgetCompilationUnit()default ExtendsListgetExtendsList()default ImplementsListgetImplementsList()default List<ImportDeclaration>getImportDeclarations()default StringgetName()default TypeParametersgetTypeParameters()default booleanisClass()-
Methods inherited from interface com.javacc.parser.Node
addChild, addChild, appendChild, children, children, childrenOfType, clearChildren, close, compareTo, copyLocationInfo, copyLocationInfo, descendants, descendants, descendants, descendants, descendantsOfType, dump, dump, firstAncestorOfType, firstChildOfType, firstChildOfType, firstChildOfType, firstDescendantOfType, firstDescendantOfType, getAllTokens, getBeginColumn, getBeginLine, getBeginOffset, getChild, getChildCount, getEndColumn, getEndLine, getEndOffset, getFirstChild, getFirstToken, getGrammar, getInputSource, getLastChild, getLastToken, getLocation, getParent, getRealTokens, getRoot, getSource, getTokenSource, getTokenType, hasChildNodes, indexOf, isUnparsed, iterator, nextSibling, open, prependChild, previousSibling, removeChild, removeChild, replace, replaceChild, setBeginOffset, setChild, setEndOffset, setGrammar, setParent, setTokenSource, setUnparsed
-
-
-
-
Method Detail
-
getName
default String getName()
-
getTypeParameters
default TypeParameters getTypeParameters()
-
getBody
default ClassOrInterfaceBody getBody()
-
getExtendsList
default ExtendsList getExtendsList()
-
getImplementsList
default ImplementsList getImplementsList()
-
getCompilationUnit
default CompilationUnit getCompilationUnit()
-
getImportDeclarations
default List<ImportDeclaration> getImportDeclarations()
-
addElements
default void addElements(List<ClassOrInterfaceBodyDeclaration> elements)
-
addAnnotations
default void addAnnotations(Set<Annotation> annotations)
-
isClass
default boolean isClass()
-
addImplements
default void addImplements(ObjectType type)
-
addExtends
default void addExtends(ObjectType type)
-
-