Package org.eclipse.steady.java
Class JavaMethodId
- java.lang.Object
-
- org.eclipse.steady.ConstructId
-
- org.eclipse.steady.java.JavaId
-
- org.eclipse.steady.java.JavaMethodId
-
- All Implemented Interfaces:
Comparable<ConstructId>
public class JavaMethodId extends JavaId
Identifies a method relative to its class (normal or nested).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.steady.java.JavaId
JavaId.Type
-
-
Constructor Summary
Constructors Constructor Description JavaMethodId(JavaId _c, String _simple_name, List<String> _parameter_types)Constructor for JavaMethodId.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstructIdgetDefinitionContext()getDefinitionContext.JavaPackageIdgetJavaPackageId()getJavaPackageId.StringgetName()Returns the method name, including parameter types in brackets.StringgetQualifiedName()Returns the fully qualified name, i.e., with parameter types and the surrounding class.StringgetSimpleName()Returns the method name, excluding parameter types and brackets.booleanisTestMethod()Returns true if the method has the @Test annotation or both the method name and its class name have the postfix or suffix 'test'.-
Methods inherited from class org.eclipse.steady.java.JavaId
addAnnotation, equals, filter, filter, filter, filterWithContext, getAnnotations, getClassId, getCompilationUnit, getCompilationUnit, getJarUrl, getJarUrl, getJavaId, getSharedType, getType, hasAnnotation, hashCode, parameterTypesToString, parameterTypesToString, parseClassInitQName, parseClassQName, parseConstructorQName, parseConstructorQName, parseEnumQName, parseMethodQName, parseMethodQName, removePackageContext, toCoreType, toCoreType, toGSON, toJSON, toSharedType, toString, typeFromString, typeToString
-
Methods inherited from class org.eclipse.steady.ConstructId
compareTo, getLanguage, getSharedType, toSharedType
-
-
-
-
Method Detail
-
getQualifiedName
public String getQualifiedName()
Returns the fully qualified name, i.e., with parameter types and the surrounding class.- Specified by:
getQualifiedNamein classConstructId- Returns:
- a
Stringobject.
-
getName
public String getName()
Returns the method name, including parameter types in brackets.- Specified by:
getNamein classConstructId- Returns:
- a
Stringobject.
-
getSimpleName
public String getSimpleName()
Returns the method name, excluding parameter types and brackets.- Specified by:
getSimpleNamein classConstructId- Returns:
- a
Stringobject.
-
getDefinitionContext
public ConstructId getDefinitionContext()
getDefinitionContext.
- Specified by:
getDefinitionContextin classJavaId- Returns:
- a
ConstructIdobject.
-
getJavaPackageId
public JavaPackageId getJavaPackageId()
getJavaPackageId.
- Specified by:
getJavaPackageIdin classJavaId- Returns:
- a
JavaPackageIdobject.
-
isTestMethod
public boolean isTestMethod()
Returns true if the method has the @Test annotation or both the method name and its class name have the postfix or suffix 'test'.- Returns:
- a boolean.
-
-