Top Description Methods
com.github.javaparser.ast.nodeTypes

public Interface NodeWithExtends<N extends Node>

Known Direct Implementers
com.github.javaparser.ast.body.ClassOrInterfaceDeclaration
Imports
com.github.javaparser.ast.Node, .NodeList, com.github.javaparser.ast.type.ClassOrInterfaceType

A node that extends other types.

Method Summary

Modifier and TypeMethod and Description
public default N
public default N

Returns:

this
addExtendedType
(Class<?>
the class to extand from
clazz
)

Add an "extends" to this and automatically add the import

public default N

Returns:

this
addExtendedType
(String
the name of the type to extends from
name
)

Add an "extends" to this

public default N
addExtends(Class<?> clazz)

Deprecated use addExtendedType
public default N
addExtends(String name)

Deprecated use addExtendedType
public NodeList<ClassOrInterfaceType>
public default ClassOrInterfaceType
public default N
public N
public void

Method Detail

addExtendedTypeback to summary
public default N addExtendedType(ClassOrInterfaceType extend)
Annotations
@SuppressWarnings:unchecked
addExtendedTypeback to summary
public default N addExtendedType(Class<?> clazz)

Add an "extends" to this and automatically add the import

Parameters
clazz:Class<?>

the class to extand from

Returns:N

this

addExtendedTypeback to summary
public default N addExtendedType(String name)

Add an "extends" to this

Parameters
name:String

the name of the type to extends from

Returns:N

this

Annotations
@SuppressWarnings:unchecked
addExtendsback to summary
public default N addExtends(Class<?> clazz)

Deprecated

use addExtendedType

addExtendsback to summary
public default N addExtends(String name)

Deprecated

use addExtendedType

getExtendedTypesback to summary
public NodeList<ClassOrInterfaceType> getExtendedTypes()
getExtendedTypesback to summary
public default ClassOrInterfaceType getExtendedTypes(int i)
setExtendedTypeback to summary
public default N setExtendedType(int i, ClassOrInterfaceType extend)
Annotations
@SuppressWarnings:unchecked
setExtendedTypesback to summary
public N setExtendedTypes(NodeList<ClassOrInterfaceType> extendsList)
tryAddImportToParentCompilationUnitback to summary
public void tryAddImportToParentCompilationUnit(Class<?> clazz)