Class MethodLocation

java.lang.Object
com.cloudbees.groovy.cps.MethodLocation
All Implemented Interfaces:
Serializable

public final class MethodLocation extends Object implements Serializable
Triplet of source file / declaring class / method name. Separated from SourceLocation for better reuse.
Author:
Kohsuke Kawaguchi
See Also:
  • Field Details

    • UNKNOWN

      public static final MethodLocation UNKNOWN
      Constant in case source location information is unavailable.
  • Constructor Details

    • MethodLocation

      public MethodLocation(Class clazz, String methodName)
    • MethodLocation

      public MethodLocation(String declaringClass, String methodName, String fileName)
  • Method Details

    • getDeclaringClass

      public String getDeclaringClass()
    • getMethodName

      public String getMethodName()
    • getFileName

      public String getFileName()
    • toStackTrace

      public StackTraceElement toStackTrace(int lineNumber)