EPackage: java
Changes to synch up with Java3e:
- deleted JavaElement, BodyElement which didn't add anything useful
- deleted NestedClass and the association which described nesting, contents can be used instead
- deleted extends/extendedBy which is replaced with MOF subtype/supertype
- deleted the clumsy main diagram
- moved the MOF inheritance details to the MOF binding diagram
- deleted "final" on JavaParameter, don't know what that was supposed to be
- deleted the Category junk
- changed the Block-typed attributes on Field, Method, Initializer to be associations to Block
Outstanding questions/issues:
- JavaParameterKind should go away if we get the base Parameter kind fixed up
EClass: JavaClass
Inherits from
Structural Features
TypeKind | [0,1] | kind | |
EBoolean | [0,1] | public | |
EBoolean | [0,1] | final | |
JavaClass | [0,*] | implementsInterfaces | |
JavaClass | [0,*] | classImport | |
JavaPackage | [0,*] | packageImports | |
Field | [0,*] | fields | |
Method | [0,*] | methods | |
Initializer | [0,*] | initializers | |
JavaClass | [0,*] | declaredClasses | |
JavaClass | [0,1] | declaringClass | |
JavaPackage | [0,1] | javaPackage | |
JavaEvent | [0,*] | events | |
JavaEvent | [0,*] | allEvents | |
Operations
EBoolean | isNested | - |
Field | getFieldReturn an Field with the passed name, or null. | |
Field | getFieldExtended Return an Field with the passed name from this JavaClass or any supertypes.
Return null if a Field named fieldName is not found. | |
Field | getFieldNamedReturn an Field with the passed name, or null. | |
JTypeList | getFieldsExtendedReturn all fields, including those from supertypes. | - |
Method | getMethodGet the method of this name and these parameters. It will not look up the supertype hierarchy. | |
JTypeList | getMethodElementSignaturesReturn a List of Strings that represent MethodElement signatures from most general to most specific. | - |
Method | getMethodExtendedGet the method of this name and these parameters. It will look up the supertype hierarchy. | |
JTypeList | getMethodsExtendedReturn all methods, including those from supertypes. | - |
JTypeList | getOnlySpecificMethodsReturn a List of Methods that begins with @aMethodNamePrefix and is not included in the @excludedNames list. If @aMethodNamePrefix is null, all methods will be returned.
| |
Method | getPublicMethodReturn a method matching the name, and non-return parameters with fully qualified types matching all the types in the list, if it exists. It will not look up the supertype hierarchy. | |
JTypeList | getPublicMethodsReturn all methods, it will not go up the supertype hierarchy. | - |
JTypeList | getPublicMethodsExtendedReturn all public methods, including those from supertypes. | - |
JTypeList | getPublicMethodsNamedReturns a filtered list on the methods of this class, having a name equal to that of the parameter. | |
JavaClass | getSupertype | - |
EBoolean | implementsInterfaceTest whether the receiver implements the passed interface (or one of its supertypes). | |
EString | infoStringReturn a string showing our details. | - |
EBoolean | inheritsFromTests whether this class inherits from the passed in class. | |
EBoolean | isExistingTypeDoes this type exist. | - |
EBoolean | isInterfaceIs this an interface. | - |
? | setSupertypeSet the supertype. | |
EClass: Initializer
Structural Features
EClass: JavaParameter
Inherits from
Structural Features
Operations
EClass: Method
Inherits from
Structural Features
EBoolean | [0,1] | abstract | |
EBoolean | [0,1] | native | |
EBoolean | [0,1] | synchronized | |
EBoolean | [0,1] | final | |
EBoolean | [0,1] | constructor | |
EBoolean | [0,1] | static | |
JavaVisibilityKind | [0,1] | javaVisibility | |
JavaParameter | [0,*] | parameters | |
JavaClass | [0,*] | javaExceptions | |
JavaClass | [0,1] | javaClass | |
Block | [0,1] | source | |
Operations
JavaClass | getContainingJavaClassReturn the java class that this method is defined in. | - |
EString | getMethodElementSignatureReturn a String with the the method name and its parameters. e.g. setFirstName(java.lang.String) .
| - |
JavaParameter | getParameterReturn a Parameter with the passed name, or null. | |
JTypeJavaHelpers | getReturnTypeGet the return type. | - |
? | setReturnTypeSet the return type | |
EString | getSignatureReplicate the functionality of java.lang.reflect.Method.toString().
Returns a string describing this Method. The string is formatted as the method access modifiers, if any, followed by the method return type, followed by a space, followed by the class declaring the method, followed by a period, followed by the method name, followed by a parenthesized, comma-separated list of the method's formal parameter types. If the method throws checked exceptions, the parameter list is followed by a space, followed by the word throws followed by a comma-separated list of the thrown exception types.
For example:
public boolean java.lang.Object.equals(java.lang.Object)
The access modifiers are placed in canonical order as specified by "The Java Language Specification". This is public, protected or private first, and then other modifiers in the following order: abstract, static, final, synchronized native.
| - |
EBoolean | isGeneratedReturns true if the method is system generated.
This is usually determined by the @generated tag in the comment. | - |
? | setIsGeneratedSet the isGenerated flag. | |
EBoolean | isVoidIs this a void return type method. | - |
EClass: Field
Inherits from
Structural Features
Operations
JavaClass | getContainingJavaClassGet the class that this field is within. | - |
EBoolean | isArrayIs this field an array type. | - |
EClass: Block
Structural Features
Inherits from
EClass: Statement
Inherits from
EClass: JavaPackage
Inherits from
Structural Features
EClass: JavaDataType
Inherits from
Operations
EString | getDefaultValueStringReturn the default string representing the default value of the primitive. | - |
EClass: ArrayType
Describes a Java Array type
For multi-dimensional arrays, it is unlikely that the component type will be
specified directly. This would require instantiating a chain of component types
such as String[][][][]->String[][][]->String[][]->String[]->String.
The component type relationship will be computed if the finalComponentType
and array dimensions is specified.
For this reason, the preferred way to create is through the JavaRefFactory factory method:
createArrayType(JavaClass finalComponentType, int dimensions)
Inherits from
Structural Features
Operations
JTypeJavaHelpers | getFinalComponentTypeGet the final component type for this Array Type.
In order to ensure a unique instance, we will resolve this type using reflection. It turns out to be most efficient to just do this by trimming the name. | - |
JTypeJavaHelpers | getComponentTypeAsHelperGet the component type of this array.
If this is a multi-dimensional array, the component type will be the nested array type. | - |
EBoolean | isPrimitiveArrayIs this an array of java primitives | - |
? | setComponentTypeSet the component type. | |
EClass: JavaEvent
Inherits from
EEnum: TypeKind
UNDEFINED=1 CLASS=2 INTERFACE=3 EXCEPTION=4
- 0: UNDEFINED
- 1: CLASS
- 2: INTERFACE
- 3: EXCEPTION
EEnum: JavaVisibilityKind
PACKAGE=1
PUBLIC=2
PRIVATE=3
PROTECTED=4
- 0: PUBLIC
- 1: PRIVATE
- 2: PROTECTED
- 3: PACKAGE
EEnum: JavaParameterKind
IN=0
OUT=1
INOUT=2
RETURN=3
- 0: IN
- 1: OUT
- 2: INOUT
- 3: RETURN
EDataType: JTypeJavaHelpers
This interface is a common interface between JavaClass and JavaDataType plus some common helper methods.
Mapped to: org.eclipse.jem.java.JavaHelpers
EDataType: JTypeList
java.util.List type
Mapped to: java.util.List
EPackage: ecore
EClass: EAttribute
Inherits from
Structural Features
EClass: EAnnotation
Inherits from
Structural Features
EClass: EClass
Inherits from
Structural Features
EBoolean | [0,1] | abstract | |
EBoolean | [0,1] | interface | |
EClass | [0,*] | eSuperTypes | |
EOperation | [0,*] | eOperations | |
EAttribute | [0,*] | eAllAttributes | |
EReference | [0,*] | eAllReferences | |
EReference | [0,*] | eReferences | |
EAttribute | [0,*] | eAttributes | |
EReference | [0,*] | eAllContainments | |
EOperation | [0,*] | eAllOperations | |
EStructuralFeature | [0,*] | eAllStructuralFeatures | |
EClass | [0,*] | eAllSuperTypes | |
EAttribute | [0,1] | eIDAttribute | |
EStructuralFeature | [0,*] | eStructuralFeatures | |
EGenericType | [0,*] | eGenericSuperTypes | |
EGenericType | [0,*] | eAllGenericSuperTypes | |
Operations
EClass: EClassifier
Inherits from
Structural Features
Operations
EClass: EDataType
Inherits from
Structural Features
EClass: EEnum
Inherits from
Structural Features
Operations
EClass: EEnumLiteral
Inherits from
Structural Features
EClass: EFactory
Inherits from
Structural Features
Operations
EClass: EModelElement
Inherits from
Structural Features
Operations
EClass: ENamedElement
Inherits from
Structural Features
EClass: EObject
Operations
EClass: EOperation
Inherits from
Structural Features
EClass: EPackage
Inherits from
Structural Features
Operations
EClass: EParameter
Inherits from
Structural Features
EClass: EReference
Inherits from
Structural Features
EClass: EStructuralFeature
Inherits from
Structural Features
Operations
EClass: ETypedElement
Inherits from
Structural Features
EClass: EStringToStringMapEntry
Structural Features
EClass: EGenericType
Inherits from
Structural Features
EClass: ETypeParameter
Inherits from
Structural Features
EDataType: EBigDecimal
Mapped to: java.math.BigDecimal
EDataType: EBigInteger
Mapped to: java.math.BigInteger
EDataType: EBoolean
Mapped to: boolean
EDataType: EBooleanObject
Mapped to: java.lang.Boolean
EDataType: EByte
Mapped to: byte
EDataType: EByteArray
Mapped to: byte[]
EDataType: EByteObject
Mapped to: java.lang.Byte
EDataType: EChar
Mapped to: char
EDataType: ECharacterObject
Mapped to: java.lang.Character
EDataType: EDate
Mapped to: java.util.Date
EDataType: EDiagnosticChain
Mapped to: org.eclipse.emf.common.util.DiagnosticChain
EDataType: EDouble
Mapped to: double
EDataType: EDoubleObject
Mapped to: java.lang.Double
EDataType: EEList
Mapped to: org.eclipse.emf.common.util.EList
EDataType: EEnumerator
Mapped to: org.eclipse.emf.common.util.Enumerator
EDataType: EFeatureMap
Mapped to: org.eclipse.emf.ecore.util.FeatureMap
EDataType: EFeatureMapEntry
Mapped to: org.eclipse.emf.ecore.util.FeatureMap$Entry
EDataType: EFloat
Mapped to: float
EDataType: EFloatObject
Mapped to: java.lang.Float
EDataType: EInt
Mapped to: int
EDataType: EIntegerObject
Mapped to: java.lang.Integer
EDataType: EJavaClass
Mapped to: java.lang.Class
EDataType: EJavaObject
Mapped to: java.lang.Object
EDataType: ELong
Mapped to: long
EDataType: ELongObject
Mapped to: java.lang.Long
EDataType: EMap
Mapped to: java.util.Map
EDataType: EResource
Mapped to: org.eclipse.emf.ecore.resource.Resource
EDataType: EResourceSet
Mapped to: org.eclipse.emf.ecore.resource.ResourceSet
EDataType: EShort
Mapped to: short
EDataType: EShortObject
Mapped to: java.lang.Short
EDataType: EString
Mapped to: java.lang.String
EDataType: ETreeIterator
Mapped to: org.eclipse.emf.common.util.TreeIterator