Package gw.internal.gosu.parser
Class GosuConstructorInfo
- java.lang.Object
-
- gw.lang.reflect.BaseFeatureInfo
-
- gw.internal.gosu.parser.GosuBaseAttributedFeatureInfo
-
- gw.internal.gosu.parser.AbstractGenericMethodInfo
-
- gw.internal.gosu.parser.GosuConstructorInfo
-
- All Implemented Interfaces:
IGosuConstructorInfo
,IAnnotatedFeatureInfo
,IAttributedFeatureInfo
,IConstructorInfo
,IDFSBackedFeatureInfo
,IFeatureInfo
,IGenericMethodInfo
,IHasParameterInfos
,IOptionalParamCapable
- Direct Known Subclasses:
ParameterizedGosuConstructorInfo
public class GosuConstructorInfo extends AbstractGenericMethodInfo implements IGosuConstructorInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
GosuConstructorInfo.GosuConstructorHandler
-
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
-
Fields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
-
Constructor Summary
Constructors Constructor Description GosuConstructorInfo(IFeatureInfo container, DynamicFunctionSymbol dfs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IGosuConstructorInfo
getBackingConstructorInfo()
IConstructorHandler
getConstructor()
IExpression[]
getDefaultValueExpressions()
String[]
getParameterNames()
IType
getType()
boolean
hasRawConstructor(IConstructorInfo rawCtor)
boolean
isDefault()
-
Methods inherited from class gw.internal.gosu.parser.AbstractGenericMethodInfo
ensureInferredTypeAssignableToBoundingType, getArgs, getDescription, getDfs, getDisplayName, getExceptions, getGosuAnnotations, getName, getParameterizedParameterTypes, getParameterizedParameterTypes2, getParameterizedReturnType, getParameters, getTypeVariables, inferTypeParametersFromArgumentTypes, inferTypeParametersFromArgumentTypes2, isAbstract, isDefaultImpl, isFinal, isInternal, isPrivate, isProtected, isPublic, isReified, isStatic
-
Methods inherited from class gw.internal.gosu.parser.GosuBaseAttributedFeatureInfo
getActualTypeInContainer, getDeclaredAnnotations, getDeprecatedReason, getOwnersType, isDeprecated, isHidden, isVisible
-
Methods inherited from class gw.lang.reflect.BaseFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getParamTypes, getSuperAnnotatedElements, hasAnnotation, hasDeclaredAnnotation, isInternalAPI, 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, getDeclaredAnnotations, getDeprecatedReason, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl, isDeprecated
-
Methods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isAbstract, isFinal, isHidden, isInternal, isPrivate, isProtected, isPublic, isReified, isScriptable, isStatic, isVisible
-
Methods inherited from interface gw.lang.reflect.IConstructorInfo
getExceptions, getParameters
-
Methods inherited from interface gw.lang.reflect.IDFSBackedFeatureInfo
getDfs
-
Methods inherited from interface gw.lang.reflect.IFeatureInfo
getContainer, getDescription, getDisplayName, getLocationInfo, getName, getOwnersType
-
Methods inherited from interface gw.lang.reflect.IGenericMethodInfo
getParameterizedParameterTypes, getParameterizedParameterTypes2, getParameterizedReturnType, getTypeVariables, inferTypeParametersFromArgumentTypes, inferTypeParametersFromArgumentTypes2
-
Methods inherited from interface gw.lang.reflect.gs.IGosuConstructorInfo
getArgs
-
-
-
-
Constructor Detail
-
GosuConstructorInfo
public GosuConstructorInfo(IFeatureInfo container, DynamicFunctionSymbol dfs)
-
-
Method Detail
-
getType
public IType getType()
- Specified by:
getType
in interfaceIConstructorInfo
-
getConstructor
public IConstructorHandler getConstructor()
- Specified by:
getConstructor
in interfaceIConstructorInfo
-
hasRawConstructor
public boolean hasRawConstructor(IConstructorInfo rawCtor)
- Specified by:
hasRawConstructor
in interfaceIConstructorInfo
-
isDefault
public boolean isDefault()
- Specified by:
isDefault
in interfaceIConstructorInfo
-
getDefaultValueExpressions
public IExpression[] 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
public String[] getParameterNames()
- Specified by:
getParameterNames
in interfaceIOptionalParamCapable
-
getBackingConstructorInfo
public IGosuConstructorInfo getBackingConstructorInfo()
- Specified by:
getBackingConstructorInfo
in interfaceIGosuConstructorInfo
-
-