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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertGenericParameterTypes(IFeatureInfo container, TypeVarToTypeMap actualParamByVarName) private JavaSourceElementgetAnnotation(Class annotationClass) Returns this element's annotation for the specified type if such an annotation is present, else null.Returns all annotations that are directly present on this element.private IJavaClassType[]intcom.sun.source.tree.TreegetTree()booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false.booleanprivate booleanbooleannewInstance(Object[] objects) Methods inherited from class gw.lang.reflect.java.JavaSourceElement
findInnerSourceType, getCompilationUnitTree, getDeclaringClass, getEndPosition, getLocationInfo, getSourcePositions, getStartPositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfo
-
Field Details
-
_ctor
-
_module
-
-
Constructor Details
-
AsmConstructorJavaClassConstructor
-
-
Method Details
-
getExceptionTypes
- Specified by:
getExceptionTypesin interfaceIJavaClassConstructor
-
getParameterInfos
- Specified by:
getParameterInfosin interfaceIJavaClassConstructor
-
isNonstaticInnerClass
private boolean isNonstaticInnerClass() -
getModifiers
public int getModifiers()- Specified by:
getModifiersin interfaceIJavaClassConstructor
-
isSynthetic
public boolean isSynthetic()- Specified by:
isSyntheticin interfaceIJavaClassBytecodeConstructor
-
convertGenericParameterTypes
public IParameterInfo[] convertGenericParameterTypes(IFeatureInfo container, TypeVarToTypeMap actualParamByVarName) - Specified by:
convertGenericParameterTypesin interfaceIJavaClassConstructor
-
getGenericParameterTypes
-
getParameterTypes
- Specified by:
getParameterTypesin interfaceIJavaClassConstructor
-
newInstance
public Object newInstance(Object[] objects) throws InvocationTargetException, IllegalAccessException, InstantiationException - Specified by:
newInstancein interfaceIJavaClassConstructor- Throws:
InvocationTargetExceptionIllegalAccessExceptionInstantiationException
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceIJavaClassConstructor
-
isAnnotationPresent
Description copied from interface:IJavaAnnotatedElementReturns 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:
isAnnotationPresentin 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
Description copied from interface:IJavaAnnotatedElementReturns this element's annotation for the specified type if such an annotation is present, else null.- Specified by:
getAnnotationin 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
Description copied from interface:IJavaAnnotatedElementReturns 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:
getDeclaredAnnotationsin interfaceIJavaAnnotatedElement- Returns:
- All annotations directly present on this element
-
getEnclosingClass
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement- Specified by:
getEnclosingClassin classJavaSourceElement
-
getTree
public com.sun.source.tree.Tree getTree()- Specified by:
getTreein classJavaSourceElement
-
findSourceConstructor
-