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 classNested classes/interfaces inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
IAnnotatedFeatureInfo.IAnnotationInfoHelperNested classes/interfaces inherited from interface gw.lang.reflect.IAttributedFeatureInfo
IAttributedFeatureInfo.MODIFIER -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IJavaClassConstructorprivate IConstructorHandlerprivate 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 IJavaAnnotatedElementprivate 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()booleanhasRawConstructor(IConstructorInfo rawCtor) booleanbooleanprotected booleanbooleanisFinal()protected booleanbooleanTrue if this feature is internal.booleanTrue if this feature is private.booleanTrue if this feature is protected.booleanisPublic()True if this feature is public.booleanisStatic()True if this feature is static, meaning the feature is not specific to a particular instance of the feature's containing type.booleanprivate booleanprotected booleanisVisibleViaFeatureDescriptor(IScriptabilityModifier constraint) private StringMethods inherited from class gw.internal.gosu.parser.JavaBaseFeatureInfo
isHidden, isVisible, makeDeprecatedMethods inherited from class gw.lang.reflect.BaseFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getDeprecatedReason, getOwnersType, getParamTypes, getSuperAnnotatedElements, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl, isDeprecated, isInternalAPI, isReified, isScriptable, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getDeprecatedReason, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl, isDeprecatedMethods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isHidden, isReified, isScriptable, isVisibleMethods 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:
getJavaConstructorin interfaceIJavaConstructorInfo
-
getRawConstructor
- Specified by:
getRawConstructorin interfaceIJavaConstructorInfo
-
hasRawConstructor
- Specified by:
hasRawConstructorin interfaceIConstructorInfo
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceIConstructorInfo- Specified by:
isDefaultin interfaceIJavaConstructorInfo
-
getType
- Specified by:
getTypein interfaceIConstructorInfo
-
getParameters
- Specified by:
getParametersin interfaceIConstructorInfo- Specified by:
getParametersin interfaceIHasParameterInfos
-
getConstructor
- Specified by:
getConstructorin interfaceIConstructorInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceIAnnotatedFeatureInfo- Overrides:
getDeclaredAnnotationsin 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:
getExceptionsin interfaceIConstructorInfo
-
getName
Description copied from interface:IFeatureInfoGets 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:
getNamein interfaceIFeatureInfo
-
makeSignature
-
getDisplayName
Description copied from interface:IFeatureInfoGets the display name of this feature. There is no guarantee this display name is localized.- Specified by:
getDisplayNamein interfaceIFeatureInfo- Overrides:
getDisplayNamein classBaseFeatureInfo
-
getShortDescription
-
getDescription
Description copied from interface:IFeatureInfoA full description of this feature.- Specified by:
getDescriptionin interfaceIFeatureInfo- Overrides:
getDescriptionin classBaseFeatureInfo
-
isStatic
public boolean isStatic()Description copied from interface:IAttributedFeatureInfoTrue if this feature is static, meaning the feature is not specific to a particular instance of the feature's containing type.- Specified by:
isStaticin interfaceIAttributedFeatureInfo
-
isPrivate
public boolean isPrivate()Description copied from interface:IAttributedFeatureInfoTrue if this feature is private. Private features are only accessible from within the type that owns them.- Specified by:
isPrivatein interfaceIAttributedFeatureInfo- Overrides:
isPrivatein classBaseFeatureInfo
-
isInternal
public boolean isInternal()Description copied from interface:IAttributedFeatureInfoTrue 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:
isInternalin interfaceIAttributedFeatureInfo- Overrides:
isInternalin classBaseFeatureInfo
-
isProtected
public boolean isProtected()Description copied from interface:IAttributedFeatureInfoTrue if this feature is protected. Protected features are accessible from within the type that owns them and from derived containers.- Specified by:
isProtectedin interfaceIAttributedFeatureInfo- Overrides:
isProtectedin classBaseFeatureInfo
-
isPublic
public boolean isPublic()Description copied from interface:IAttributedFeatureInfoTrue if this feature is public. Public features are not restricted.- Specified by:
isPublicin interfaceIAttributedFeatureInfo- Overrides:
isPublicin classBaseFeatureInfo
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstractin interfaceIAttributedFeatureInfo- Overrides:
isAbstractin classBaseFeatureInfo
-
getDocsForParam
- Specified by:
getDocsForParamin interfaceJavaHasParams
-
isFinal
public boolean isFinal()- Specified by:
isFinalin interfaceIAttributedFeatureInfo- Overrides:
isFinalin classBaseFeatureInfo
-
isSynthetic
public boolean isSynthetic() -
isVarArgs
private boolean isVarArgs() -
getDefaultValueExpressions
- Specified by:
getDefaultValueExpressionsin 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:
getParameterNamesin interfaceIOptionalParamCapable
-
getAnnotatedElement
- Specified by:
getAnnotatedElementin classJavaBaseFeatureInfo
-
isVisibleViaFeatureDescriptor
- Specified by:
isVisibleViaFeatureDescriptorin classJavaBaseFeatureInfo
-
isHiddenViaFeatureDescriptor
protected boolean isHiddenViaFeatureDescriptor()- Specified by:
isHiddenViaFeatureDescriptorin classJavaBaseFeatureInfo
-
isDefaultEnumFeature
protected boolean isDefaultEnumFeature()- Specified by:
isDefaultEnumFeaturein classJavaBaseFeatureInfo
-
getLocationInfo
- Specified by:
getLocationInfoin interfaceIFeatureInfo
-