Examples of ElementKind


Examples of javax.lang.model.element.ElementKind

  }

  private boolean parseElementCollection(ElementCollection collection) {
    String[] types;
    XmlMetaCollection metaCollection;
    ElementKind elementKind = getElementKind( collection.getAccess() );
    String explicitTargetClass = determineExplicitTargetEntity( collection.getTargetClass() );
    String explicitMapKey = determineExplicitMapKeyClass( collection.getMapKeyClass() );
    try {
      types = getCollectionTypes(
          collection.getName(), explicitTargetClass, explicitMapKey, elementKind
View Full Code Here

Examples of javax.lang.model.element.ElementKind

    return false;
  }

  private void parseEmbedded(Embedded embedded) {
    XmlMetaSingleAttribute attribute;
    ElementKind elementKind = getElementKind( embedded.getAccess() );
    String type = getType( embedded.getName(), null, elementKind );
    if ( type != null ) {
      attribute = new XmlMetaSingleAttribute( this, embedded.getName(), type );
      members.add( attribute );
    }
View Full Code Here

Examples of javax.lang.model.element.ElementKind

  }

  private boolean parseOneToMany(OneToMany oneToMany) {
    String[] types;
    XmlMetaCollection metaCollection;
    ElementKind elementKind = getElementKind( oneToMany.getAccess() );
    String explicitTargetClass = determineExplicitTargetEntity( oneToMany.getTargetEntity() );
    String explicitMapKey = determineExplicitMapKeyClass( oneToMany.getMapKeyClass() );
    try {
      types = getCollectionTypes( oneToMany.getName(), explicitTargetClass, explicitMapKey, elementKind );
    }
View Full Code Here

Examples of javax.lang.model.element.ElementKind

  }

  private boolean parseManyToMany(ManyToMany manyToMany) {
    String[] types;
    XmlMetaCollection metaCollection;
    ElementKind elementKind = getElementKind( manyToMany.getAccess() );
    String explicitTargetClass = determineExplicitTargetEntity( manyToMany.getTargetEntity() );
    String explicitMapKey = determineExplicitMapKeyClass( manyToMany.getMapKeyClass() );
    try {
      types = getCollectionTypes(
          manyToMany.getName(), explicitTargetClass, explicitMapKey, elementKind
View Full Code Here

Examples of javax.lang.model.element.ElementKind

    return false;
  }

  private void parseOneToOne(OneToOne oneToOne) {
    XmlMetaSingleAttribute attribute;
    ElementKind elementKind = getElementKind( oneToOne.getAccess() );
    String type = getType( oneToOne.getName(), oneToOne.getTargetEntity(), elementKind );
    if ( type != null ) {
      attribute = new XmlMetaSingleAttribute( this, oneToOne.getName(), type );
      members.add( attribute );
    }
View Full Code Here

Examples of javax.lang.model.element.ElementKind

    }
  }

  private void parseManyToOne(ManyToOne manyToOne) {
    XmlMetaSingleAttribute attribute;
    ElementKind elementKind = getElementKind( manyToOne.getAccess() );
    String type = getType( manyToOne.getName(), manyToOne.getTargetEntity(), elementKind );
    if ( type != null ) {
      attribute = new XmlMetaSingleAttribute( this, manyToOne.getName(), type );
      members.add( attribute );
    }
View Full Code Here

Examples of javax.lang.model.element.ElementKind

    }
  }

  private void parseBasic(Basic basic) {
    XmlMetaSingleAttribute attribute;
    ElementKind elementKind = getElementKind( basic.getAccess() );
    String type = getType( basic.getName(), null, elementKind );
    if ( type != null ) {
      attribute = new XmlMetaSingleAttribute( this, basic.getName(), type );
      members.add( attribute );
    }
View Full Code Here

Examples of javax.lang.model.element.ElementKind

     * @param p {@inheritDoc}
     * @return  the result of the kind-specific visit method
     */
    @Override
    public R visitVariable(VariableElement e, P p) {
        ElementKind k = e.getKind();
        switch(k) {
        case ENUM_CONSTANT:
            return visitVariableAsEnumConstant(e, p);

        case EXCEPTION_PARAMETER:
View Full Code Here

Examples of javax.lang.model.element.ElementKind

     * @param p {@inheritDoc}
     * @return  the result of the kind-specific visit method
     */
    @Override
    public R visitExecutable(ExecutableElement e, P p) {
        ElementKind k = e.getKind();
        switch(k) {
        case CONSTRUCTOR:
            return visitExecutableAsConstructor(e, p);

        case INSTANCE_INIT:
View Full Code Here

Examples of javax.lang.model.element.ElementKind

     * @param p {@inheritDoc}
     * @return  the result of the kind-specific visit method
     */
    @Override
    public R visitType(TypeElement e, P p) {
  ElementKind k = e.getKind();
  switch(k) {
  case ANNOTATION_TYPE:
      return visitTypeAsAnnotationType(e, p);

  case CLASS:
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.