public abstract class CallableDeclaration<T extends Node> extends BodyDeclaration<T>
Node.ObserverRegistrationMode
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Constructor and Description |
---|
CallableDeclaration(Range range,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType<?>> thrownExceptions) |
getAnnotations, setAnnotations
addOrphanComment, equals, getAllContainedComments, getChildNodes, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeOrphanComment, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setRange, toString, toString, tryAddImportToParentCompilationUnit, unregister
finalize, getClass, notify, notifyAll, wait, wait, wait
addAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotation
getAncestorOfType, setAsParentNodeOf, setAsParentNodeOf
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
public CallableDeclaration(Range range, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType<?>> thrownExceptions)
public EnumSet<Modifier> getModifiers()
Modifier
public SimpleName getName()
public T setName(SimpleName name)
public NodeList<ReferenceType<?>> getThrownExceptions()
public T setThrownExceptions(NodeList<ReferenceType<?>> thrownExceptions)
public NodeList<TypeParameter> getTypeParameters()
public T setTypeParameters(NodeList<TypeParameter> typeParameters)
public String getDeclarationAsString(boolean includingModifiers, boolean includingThrows)
public String getDeclarationAsString()
public abstract String getDeclarationAsString(boolean includingModifiers, boolean includingThrows, boolean includingParameterName)
protected String appendThrowsIfRequested(boolean includingThrows)
public List<NodeList<?>> getNodeLists()
Node
getNodeLists
in class BodyDeclaration<T extends Node>
public boolean remove(Node node)
remove
in class BodyDeclaration<T extends Node>
public CallableDeclaration<?> clone()
clone
in class BodyDeclaration<T extends Node>
public CallableDeclarationMetaModel getMetaModel()
getMetaModel
in class BodyDeclaration<T extends Node>
Copyright © 2007–2017. All rights reserved.