Package gw.internal.gosu.parser
Class AsmConstructorJavaClassConstructor
- java.lang.Object
-
- gw.lang.reflect.java.JavaSourceElement
-
- gw.internal.gosu.parser.AsmConstructorJavaClassConstructor
-
- All Implemented Interfaces:
IJavaAnnotatedElement
,IJavaClassBytecodeConstructor
,IJavaClassConstructor
,Serializable
public class AsmConstructorJavaClassConstructor extends JavaSourceElement implements IJavaClassConstructor, IJavaClassBytecodeConstructor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsmConstructorJavaClassConstructor(AsmMethod ctor, IModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IParameterInfo[]
convertGenericParameterTypes(IFeatureInfo container, TypeVarToTypeMap actualParamByVarName)
IAnnotationInfo
getAnnotation(Class annotationClass)
Returns this element's annotation for the specified type if such an annotation is present, else null.IAnnotationInfo[]
getDeclaredAnnotations()
Returns all annotations that are directly present on this element.IJavaClassInfo
getEnclosingClass()
IJavaClassInfo[]
getExceptionTypes()
int
getModifiers()
List<Parameter>
getParameterInfos()
IJavaClassInfo[]
getParameterTypes()
com.sun.source.tree.Tree
getTree()
boolean
isAnnotationPresent(Class<? extends Annotation> annotationClass)
Returns true if an annotation for the specified type is present on this element, else false.boolean
isDefault()
boolean
isSynthetic()
Object
newInstance(Object[] objects)
-
Methods inherited from class gw.lang.reflect.java.JavaSourceElement
findInnerSourceType, getCompilationUnitTree, getDeclaringClass, getEndPosition, getLocationInfo, getSourcePositions, getStartPosition
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfo
-
-
-
-
Method Detail
-
getExceptionTypes
public IJavaClassInfo[] getExceptionTypes()
- Specified by:
getExceptionTypes
in interfaceIJavaClassConstructor
-
getParameterInfos
public List<Parameter> getParameterInfos()
- Specified by:
getParameterInfos
in interfaceIJavaClassConstructor
-
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in interfaceIJavaClassConstructor
-
isSynthetic
public boolean isSynthetic()
- Specified by:
isSynthetic
in interfaceIJavaClassBytecodeConstructor
-
convertGenericParameterTypes
public IParameterInfo[] convertGenericParameterTypes(IFeatureInfo container, TypeVarToTypeMap actualParamByVarName)
- Specified by:
convertGenericParameterTypes
in interfaceIJavaClassConstructor
-
getParameterTypes
public IJavaClassInfo[] getParameterTypes()
- Specified by:
getParameterTypes
in interfaceIJavaClassConstructor
-
newInstance
public Object newInstance(Object[] objects) throws InvocationTargetException, IllegalAccessException, InstantiationException
- Specified by:
newInstance
in interfaceIJavaClassConstructor
- Throws:
InvocationTargetException
IllegalAccessException
InstantiationException
-
isDefault
public boolean isDefault()
- Specified by:
isDefault
in interfaceIJavaClassConstructor
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
Description copied from interface:IJavaAnnotatedElement
Returns true if an annotation for the specified type is present on this element, else false. This method is designed primarily for convenient access to marker annotations.- Specified by:
isAnnotationPresent
in interfaceIJavaAnnotatedElement
- Parameters:
annotationClass
- the Class object corresponding to the annotation type- Returns:
- true if an annotation for the specified annotation type is present on this element, else false
-
getAnnotation
public IAnnotationInfo getAnnotation(Class annotationClass)
Description copied from interface:IJavaAnnotatedElement
Returns this element's annotation for the specified type if such an annotation is present, else null.- Specified by:
getAnnotation
in interfaceIJavaAnnotatedElement
- Parameters:
annotationClass
- the Class object corresponding to the annotation type- Returns:
- this element's annotation for the specified annotation type if present on this element, else null
-
getDeclaredAnnotations
public IAnnotationInfo[] getDeclaredAnnotations()
Description copied from interface:IJavaAnnotatedElement
Returns all annotations that are directly present on this element. Unlike the other methods in this interface, this method ignores inherited annotations. (Returns an array of length zero if no annotations are directly present on this element.) The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.- Specified by:
getDeclaredAnnotations
in interfaceIJavaAnnotatedElement
- Returns:
- All annotations directly present on this element
-
getEnclosingClass
public IJavaClassInfo getEnclosingClass()
- Specified by:
getEnclosingClass
in interfaceIJavaAnnotatedElement
- Specified by:
getEnclosingClass
in classJavaSourceElement
-
getTree
public com.sun.source.tree.Tree getTree()
- Specified by:
getTree
in classJavaSourceElement
-
-