Class Method
java.lang.Object
org.fife.rsta.ac.java.rjc.ast.AbstractASTNode
org.fife.rsta.ac.java.rjc.ast.AbstractMember
org.fife.rsta.ac.java.rjc.ast.Method
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()booleangetBodyContainsOffset(int offs) Returns whether this method's body contains the specified offset.intintReturns the doc comment for this member.Returns the modifiers of this member.Returns this method name and parameters, as a string, in the formatmethodName(Type1 param1, Type2 param2).getParameter(int index) Returns the specified formal parameter.intintgetType()Returns the type of this member.booleanbooleanReturns whether this member is deprecated.voidvoidsetDeprecated(boolean deprecated) voidsetDocComment(String comment) Methods inherited from class AbstractMember
getParentTypeDeclaration, isStatic, setParentTypeDeclarationMethods inherited from class AbstractASTNode
getName, getNameEndOffset, getNameStartOffset, setDeclarationEndOffset, setDeclarationOffsets, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Member
getName, getNameEndOffset, getNameStartOffset
-
Field Details
-
modifiers
-
type
-
parameters
-
thrownTypeNames
-
body
-
deprecated
private boolean deprecated -
docComment
-
-
Constructor Details
-
Method
-
-
Method Details
-
getBody
-
getBodyContainsOffset
public boolean getBodyContainsOffset(int offs) Returns whether this method's body contains the specified offset.- Parameters:
offs- The offset to check.- Returns:
- Whether this method's body contains that offset.
-
getBodyEndOffset
public int getBodyEndOffset() -
getBodyStartOffset
public int getBodyStartOffset() -
getDocComment
-
getModifiers
-
getNameAndParameters
Returns this method name and parameters, as a string, in the formatmethodName(Type1 param1, Type2 param2).- Returns:
- This method's name and parameters.
-
getParameter
Returns the specified formal parameter.- Parameters:
index- The parameter's index.- Returns:
- The formal parameter.
- See Also:
-
getParameterCount
public int getParameterCount() -
getParameterIterator
-
getThrownTypeNameCount
public int getThrownTypeNameCount() -
getType
-
isConstructor
public boolean isConstructor() -
isDeprecated
public boolean isDeprecated()Description copied from interface:MemberReturns whether this member is deprecated.- Returns:
- Whether this member is deprecated.
-
setBody
-
setDeprecated
public void setDeprecated(boolean deprecated) -
setDocComment
-