Package lib.reports.info
Class MethodInfoImpl
java.lang.Object
lib.reports.info.MethodInfoImpl
- All Implemented Interfaces:
MethodInfo
Class that implements
MethodInfo
-
Constructor Summary
ConstructorsConstructorDescriptionMethodInfoImpl
(String methodName, int srcBeginLine, int endBeginLine, String modifiers, Report parentClassOrInterfaceReport) Class constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the line in the source code in which the methods end, counting from 1Get all the modifiers of the method, if presentgetName()
Get the name of the methodGet the full parent report,ClassReport
orInterfaceReport
int
Get the line in the source code in which the methods begin, counting from 1toString()
-
Constructor Details
-
MethodInfoImpl
public MethodInfoImpl(String methodName, int srcBeginLine, int endBeginLine, String modifiers, Report parentClassOrInterfaceReport) Class constructor. Build info with data passed as parameters- Parameters:
methodName
- method namesrcBeginLine
- line where method beginsendBeginLine
- line where methd endsmodifiers
- method modifiersparentClassOrInterfaceReport
- method parent class or interface- See Also:
-
NodeWithModifiers
-
-
Method Details
-
getName
Description copied from interface:MethodInfo
Get the name of the method- Specified by:
getName
in interfaceMethodInfo
- Returns:
- the name
-
getSrcBeginLine
public int getSrcBeginLine()Description copied from interface:MethodInfo
Get the line in the source code in which the methods begin, counting from 1- Specified by:
getSrcBeginLine
in interfaceMethodInfo
- Returns:
- the number of the line
-
getEndBeginLine
public int getEndBeginLine()Description copied from interface:MethodInfo
Get the line in the source code in which the methods end, counting from 1- Specified by:
getEndBeginLine
in interfaceMethodInfo
- Returns:
- the number of the line
-
getModifiers
Description copied from interface:MethodInfo
Get all the modifiers of the method, if present- Specified by:
getModifiers
in interfaceMethodInfo
- Returns:
- an
Optional<String>
if the modifiers are present, Empty otherwise
-
getParentClassOrInterfaceReport
Description copied from interface:MethodInfo
Get the full parent report,ClassReport
orInterfaceReport
- Specified by:
getParentClassOrInterfaceReport
in interfaceMethodInfo
- Returns:
- the parent report
-
toString
-