Package org.eclipse.steady.java
Class JavaConstructorId
- java.lang.Object
-
- org.eclipse.steady.ConstructId
-
- org.eclipse.steady.java.JavaId
-
- org.eclipse.steady.java.JavaConstructorId
-
- All Implemented Interfaces:
Comparable<ConstructId>
public class JavaConstructorId extends JavaId
Identifies a class constructor 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 JavaConstructorId(JavaId _simple_name, List<String> _parameter_types)Constructor for JavaConstructorId.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetConstructorIdParams()getConstructorIdParams.ConstructIdgetDefinitionContext()getDefinitionContext.JavaIdgetJavaClassContext()Deprecated.JavaPackageIdgetJavaPackageId()getJavaPackageId.StringgetName()Returns the constructor name, which is equal to the class name, plus the (unqualified) parameter types in brackets.StringgetQualifiedName()Returns the fully qualified constructor name, including package and (unqualified) parameter types.StringgetSimpleName()Returns the simple constructor name, which is equal to the class name.booleanhasParams()Returns true if the constructor has parameters, false otherwise.-
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
-
getJavaClassContext
@Deprecated public JavaId getJavaClassContext()
Deprecated.Returns the definition context, which can be a class or enum. Due to the bad naming, rather useJavaMethodId.getDefinitionContext().- Returns:
- a
JavaIdobject.
-
getQualifiedName
public String getQualifiedName()
Returns the fully qualified constructor name, including package and (unqualified) parameter types. Example: test.package.TestClass(int)- Specified by:
getQualifiedNamein classConstructId- Returns:
- a
Stringobject.
-
getName
public String getName()
Returns the constructor name, which is equal to the class name, plus the (unqualified) parameter types in brackets. Example: TestClass(int)- Specified by:
getNamein classConstructId- Returns:
- a
Stringobject.
-
getSimpleName
public String getSimpleName()
Returns the simple constructor name, which is equal to the class name. Example: Test- 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.
-
getConstructorIdParams
public String getConstructorIdParams()
getConstructorIdParams.
- Returns:
- a
Stringobject.
-
hasParams
public boolean hasParams()
Returns true if the constructor has parameters, false otherwise.- Returns:
- a boolean.
-
-