public class ConstructorDeclaration extends MethodDeclaration implements Constructor
body, exceptions, name, parameters, parentIsInterfaceDeclaration, returnType, voidComments
modArray
Constructor and Description |
---|
ConstructorDeclaration(ExtList children,
boolean parentIsInterfaceDeclaration)
Constructor declaration.
|
ConstructorDeclaration(Modifier[] modifiers,
ProgramElementName name,
ParameterDeclaration[] parameters,
Throws exceptions,
StatementBlock body,
boolean parentIsInterfaceDeclaration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAbstract()
Constructors are never abstract.
|
boolean |
isFinal()
Constructors are never final.
|
boolean |
isNative()
Constructors are never native.
|
boolean |
isStatic()
Constructors are never static.
|
boolean |
isStrictFp()
Constructors are never strictfp.
|
boolean |
isSynchronized()
Constructors are never synchronized.
|
void |
visit(Visitor v)
calls the corresponding method of a visitor in order to
perform some action/transformation on this element
|
getBody, getChildAt, getChildCount, getFirstElement, getFullName, getLastElement, getName, getParameterDeclarationAt, getParameterDeclarationCount, getParameters, getProgramElementName, getStateCount, getStatementAt, getStatementCount, getThrown, getTypeReference, getTypeReferenceAt, getTypeReferenceCount, getVoidComments, isModel, isPrivate, isProtected, isPublic, isVarArgMethod, prettyPrint
getModifiers, getVisibilityModifier, isGhost, isTransient, isVolatile
compatibleBlockSize, computeHashCode, equals, equalsModRenaming, getArrayPos, match, matchChildren
getComments, hashCode, prettyPrintMain, reuseSignature
getEndPosition, getFirstElementIncludingBlocks, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isPrivate, isProtected, isPublic
getFullName
getName
getModifiers
getComments, match
equalsModRenaming, getEndPosition, getFirstElementIncludingBlocks, getPositionInfo, getRelativePosition, getStartPosition
public ConstructorDeclaration(ExtList children, boolean parentIsInterfaceDeclaration)
parentIsInterfaceDeclaration
- a boolean set true iff
parent is an InterfaceDeclaration@Deprecated public ConstructorDeclaration(Modifier[] modifiers, ProgramElementName name, ParameterDeclaration[] parameters, Throws exceptions, StatementBlock body, boolean parentIsInterfaceDeclaration)
modifiers
- a modifier array.name
- an identifier.parameters
- a parameter declaration mutable list.exceptions
- a throws.body
- a statement block.parentIsInterfaceDeclaration
- a boolean set true iff
parent is an InterfaceDeclarationpublic boolean isAbstract()
isAbstract
in interface Method
isAbstract
in class MethodDeclaration
true
if this member is abstract,
false
otherwise.Constructor
public boolean isFinal()
isFinal
in interface Member
isFinal
in class MethodDeclaration
true
if this member is final,
false
otherwise.public boolean isNative()
isNative
in interface Method
isNative
in class MethodDeclaration
true
if this method is native,
false
otherwise.Constructor
public boolean isStatic()
isStatic
in interface Member
isStatic
in interface MemberDeclaration
isStatic
in class MethodDeclaration
true
if this member is static,
false
otherwise.public boolean isStrictFp()
isStrictFp
in interface Member
isStrictFp
in interface MemberDeclaration
isStrictFp
in class MethodDeclaration
true
if this member is strictfp,
false
otherwise.public boolean isSynchronized()
isSynchronized
in interface Method
isSynchronized
in class MethodDeclaration
true
if this method is synchronized,
false
otherwise.Constructor
public void visit(Visitor v)
SourceElement
visit
in interface SourceElement
visit
in class MethodDeclaration
v
- the Visitor