Package gw.internal.gosu.parser
Class JavaConstructorInfo
java.lang.Object
gw.lang.reflect.BaseFeatureInfo
gw.internal.gosu.parser.JavaBaseFeatureInfo
gw.internal.gosu.parser.JavaConstructorInfo
- All Implemented Interfaces:
JavaHasParams
,IAnnotatedFeatureInfo
,IAttributedFeatureInfo
,IConstructorInfo
,IFeatureInfo
,IHasParameterInfos
,IOptionalParamCapable
,IJavaConstructorInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class
Nested classes/interfaces inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
IAnnotatedFeatureInfo.IAnnotationInfoHelper
Nested classes/interfaces inherited from interface gw.lang.reflect.IAttributedFeatureInfo
IAttributedFeatureInfo.MODIFIER
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IJavaClassConstructor
private IConstructorHandler
private IDocRef<IConstructorNode>
private List<IExceptionInfo>
private IParameterInfo[]
Fields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IJavaAnnotatedElement
private IDocRef<IConstructorNode>
A full description of this feature.Gets the display name of this feature.getDocsForParam
(int paramIndex) getName()
Gets the programmatic name or identifier of this feature.String[]
getType()
boolean
hasRawConstructor
(IConstructorInfo rawCtor) boolean
boolean
protected boolean
boolean
isFinal()
protected boolean
boolean
True if this feature is internal.boolean
True if this feature is private.boolean
True if this feature is protected.boolean
isPublic()
True if this feature is public.boolean
isStatic()
True if this feature is static, meaning the feature is not specific to a particular instance of the feature's containing type.boolean
private boolean
protected boolean
isVisibleViaFeatureDescriptor
(IScriptabilityModifier constraint) private String
Methods inherited from class gw.internal.gosu.parser.JavaBaseFeatureInfo
isHidden, isVisible, makeDeprecated
Methods inherited from class gw.lang.reflect.BaseFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getDeprecatedReason, getOwnersType, getParamTypes, getSuperAnnotatedElements, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl, isDeprecated, isInternalAPI, isReified, isScriptable, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getDeprecatedReason, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl, isDeprecated
Methods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isHidden, isReified, isScriptable, isVisible
Methods inherited from interface gw.lang.reflect.IFeatureInfo
getContainer, getOwnersType
-
Field Details
-
_ctor
-
_params
-
_ctorHandler
-
_exceptions
-
_docs
-
-
Constructor Details
-
JavaConstructorInfo
- Parameters:
container
- Typically this will be the containing ITypeInfoctor
- The java ctor
-
-
Method Details
-
getJavaConstructor
- Specified by:
getJavaConstructor
in interfaceIJavaConstructorInfo
-
getRawConstructor
- Specified by:
getRawConstructor
in interfaceIJavaConstructorInfo
-
hasRawConstructor
- Specified by:
hasRawConstructor
in interfaceIConstructorInfo
-
isDefault
public boolean isDefault()- Specified by:
isDefault
in interfaceIConstructorInfo
- Specified by:
isDefault
in interfaceIJavaConstructorInfo
-
getType
- Specified by:
getType
in interfaceIConstructorInfo
-
getParameters
- Specified by:
getParameters
in interfaceIConstructorInfo
- Specified by:
getParameters
in interfaceIHasParameterInfos
-
getConstructor
- Specified by:
getConstructor
in interfaceIConstructorInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceIAnnotatedFeatureInfo
- Overrides:
getDeclaredAnnotations
in classJavaBaseFeatureInfo
- Returns:
- A map of AnnotationInfo objects by type representing all the annotations associated with this feature, or an empty map if there are no annotations.
-
getConstructorDocs
-
getExceptions
- Specified by:
getExceptions
in interfaceIConstructorInfo
-
getName
Description copied from interface:IFeatureInfo
Gets the programmatic name or identifier of this feature. Note this name should follow Java identifier naming conventions (alpha-num and underscores, but can't start with a digit).- Specified by:
getName
in interfaceIFeatureInfo
-
makeSignature
-
getDisplayName
Description copied from interface:IFeatureInfo
Gets the display name of this feature. There is no guarantee this display name is localized.- Specified by:
getDisplayName
in interfaceIFeatureInfo
- Overrides:
getDisplayName
in classBaseFeatureInfo
-
getShortDescription
-
getDescription
Description copied from interface:IFeatureInfo
A full description of this feature.- Specified by:
getDescription
in interfaceIFeatureInfo
- Overrides:
getDescription
in classBaseFeatureInfo
-
isStatic
public boolean isStatic()Description copied from interface:IAttributedFeatureInfo
True if this feature is static, meaning the feature is not specific to a particular instance of the feature's containing type.- Specified by:
isStatic
in interfaceIAttributedFeatureInfo
-
isPrivate
public boolean isPrivate()Description copied from interface:IAttributedFeatureInfo
True if this feature is private. Private features are only accessible from within the type that owns them.- Specified by:
isPrivate
in interfaceIAttributedFeatureInfo
- Overrides:
isPrivate
in classBaseFeatureInfo
-
isInternal
public boolean isInternal()Description copied from interface:IAttributedFeatureInfo
True if this feature is internal. Internal features are accessible from within the type that owns them and from other types in the same namespace.- Specified by:
isInternal
in interfaceIAttributedFeatureInfo
- Overrides:
isInternal
in classBaseFeatureInfo
-
isProtected
public boolean isProtected()Description copied from interface:IAttributedFeatureInfo
True if this feature is protected. Protected features are accessible from within the type that owns them and from derived containers.- Specified by:
isProtected
in interfaceIAttributedFeatureInfo
- Overrides:
isProtected
in classBaseFeatureInfo
-
isPublic
public boolean isPublic()Description copied from interface:IAttributedFeatureInfo
True if this feature is public. Public features are not restricted.- Specified by:
isPublic
in interfaceIAttributedFeatureInfo
- Overrides:
isPublic
in classBaseFeatureInfo
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstract
in interfaceIAttributedFeatureInfo
- Overrides:
isAbstract
in classBaseFeatureInfo
-
getDocsForParam
- Specified by:
getDocsForParam
in interfaceJavaHasParams
-
isFinal
public boolean isFinal()- Specified by:
isFinal
in interfaceIAttributedFeatureInfo
- Overrides:
isFinal
in classBaseFeatureInfo
-
isSynthetic
public boolean isSynthetic() -
isVarArgs
private boolean isVarArgs() -
getDefaultValueExpressions
- Specified by:
getDefaultValueExpressions
in interfaceIOptionalParamCapable
- Returns:
- An array of objects representing the default values for a function's parameters. Returns an empty array if there are no default values, otherwise returns an array corresponding with default parameter values. If a parameter does not have a default value, it's default value is null in the array.
-
getParameterNames
- Specified by:
getParameterNames
in interfaceIOptionalParamCapable
-
getAnnotatedElement
- Specified by:
getAnnotatedElement
in classJavaBaseFeatureInfo
-
isVisibleViaFeatureDescriptor
- Specified by:
isVisibleViaFeatureDescriptor
in classJavaBaseFeatureInfo
-
isHiddenViaFeatureDescriptor
protected boolean isHiddenViaFeatureDescriptor()- Specified by:
isHiddenViaFeatureDescriptor
in classJavaBaseFeatureInfo
-
isDefaultEnumFeature
protected boolean isDefaultEnumFeature()- Specified by:
isDefaultEnumFeature
in classJavaBaseFeatureInfo
-
getLocationInfo
- Specified by:
getLocationInfo
in interfaceIFeatureInfo
-