Examples of JvmDeclaredType


Examples of org.eclipse.xtext.common.types.JvmDeclaredType

      }
      if (_and_1) {
        final XBinaryOperation binOp = ((XBinaryOperation) expr);
        JvmIdentifiableElement _feature_1 = binOp.getFeature();
        final JvmOperation feature = ((JvmOperation) _feature_1);
        JvmDeclaredType _declaringType = feature.getDeclaringType();
        final String typeName = _declaringType.getQualifiedName();
        boolean _and_2 = false;
        boolean _startsWith = typeName.startsWith("org.eclipse.xtext.xbase.lib.");
        if (!_startsWith) {
          _and_2 = false;
        } else {
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmDeclaredType

   * @param jvmTypeRef
   */
  public List<String> getFieldNamesForClass(JvmTypeReference jvmTypeRef) {
    List<String> result = new ArrayList<String>();
    if (jvmTypeRef.getType() instanceof JvmDeclaredType) {
      JvmDeclaredType declaredType = (JvmDeclaredType)jvmTypeRef.getType();
      for (JvmField field : declaredType.getDeclaredFields()) {
        result.add(field.getSimpleName());
      }
    }
    return result;
  }
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmDeclaredType

   *            name of a filed (bean property) within this class
   * @return full JVM Field definition
   */
  public JvmField getField(JvmType parentContainerType, String fieldName) {
    if (parentContainerType instanceof JvmDeclaredType) {
      JvmDeclaredType declaredType = (JvmDeclaredType)parentContainerType;
      for (JvmField field : declaredType.getDeclaredFields()) {
        if (field.getSimpleName().equals(fieldName)) {
          return field;
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.