Package org.fife.rsta.ac.java.rjc.ast
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
Represents a method in a Java type.
- Version:
- 1.0
-
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 org.fife.rsta.ac.java.rjc.ast.AbstractMember
getParentTypeDeclaration, isStatic, setParentTypeDeclarationMethods inherited from class org.fife.rsta.ac.java.rjc.ast.AbstractASTNode
getName, getNameEndOffset, getNameStartOffset, setDeclarationEndOffset, setDeclarationOffsets, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.fife.rsta.ac.java.rjc.ast.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
Description copied from interface:MemberReturns the doc comment for this member.- Returns:
- This member's doc comment.
-
getModifiers
Description copied from interface:MemberReturns the modifiers of this member.- Returns:
- The modifiers.
-
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
Description copied from interface:MemberReturns the type of this member.- Returns:
- This member's type.
-
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
-