Examples of referenceType()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceType()

      case Scope.METHOD_SCOPE :
        IType parentType = (IType) createElement(scope.parent, elementPosition, unit, existingElements, knownScopes);
        MethodScope methodScope = (MethodScope) scope;
        if (methodScope.isInsideInitializer()) {
          // inside field or initializer, must find proper one
          TypeDeclaration type = methodScope.referenceType();
          int occurenceCount = 1;
          for (int i = 0, length = type.fields.length; i < length; i++) {
            FieldDeclaration field = type.fields[i];
            if (field.declarationSourceStart < elementPosition && field.declarationSourceEnd > elementPosition) {
              switch (field.getKind()) {
View Full Code Here

Examples of org.auraframework.util.json.Json.Serialization.referenceType()

public class DefaultJsonSerializer implements JsonSerializer<Object> {
    @Override
    public ReferenceType getReferenceType(Object value) {
        Serialization serialization = value.getClass().getAnnotation(Serialization.class);
        if (serialization != null) {
            return serialization.referenceType();
        }
        return ReferenceType.NONE;
    }

    @Override
View Full Code Here

Examples of org.auraframework.util.json.Json.Serialization.referenceType()

    public static class OldSerializer implements JsonSerializer<JsonSerializable> {
        @Override
        public final ReferenceType getReferenceType(JsonSerializable value) {
            Serialization serialization = value.getClass().getAnnotation(Serialization.class);
            if (serialization != null) {
                return serialization.referenceType();
            }
            return ReferenceType.NONE;
        }

        @Override
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ClassScope.referenceType()

  }

  public static AnnotationBinding getAnnotation(Binding binding, String nameToFind) {
    if (binding instanceof SourceTypeBinding) {
      ClassScope scope = ((SourceTypeBinding) binding).scope;
      return scope != null ? getAnnotation(scope.referenceType().annotations, nameToFind) : null;
    } else if (binding instanceof ReferenceBinding) {
      return getAnnotation(((ReferenceBinding) binding).getAnnotations(), nameToFind);
    } else if (binding instanceof SyntheticMethodBinding) {
      return null;
    } else if (binding instanceof MethodBinding) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ClassScope.referenceType()

  }

  public static AnnotationBinding getAnnotation(Binding binding, String nameToFind) {
    if (binding instanceof SourceTypeBinding) {
      ClassScope scope = ((SourceTypeBinding) binding).scope;
      return scope != null ? getAnnotation(scope.referenceType().annotations, nameToFind) : null;
    } else if (binding instanceof ReferenceBinding) {
      return getAnnotation(((ReferenceBinding) binding).getAnnotations(), nameToFind);
    } else if (binding instanceof SyntheticMethodBinding) {
      return null;
    } else if (binding instanceof MethodBinding) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceType()

      case Scope.METHOD_SCOPE :
        IType parentType = (IType) createElement(scope.parent, elementPosition, unit, existingElements, knownScopes);
        MethodScope methodScope = (MethodScope) scope;
        if (methodScope.isInsideInitializer()) {
          // inside field or initializer, must find proper one
          TypeDeclaration type = methodScope.referenceType();
          int occurenceCount = 1;
          int length = type.fields == null ? 0 : type.fields.length;
          for (int i = 0; i < length; i++) {
            FieldDeclaration field = type.fields[i];
            if (field.declarationSourceStart <= elementPosition && elementPosition <= field.declarationSourceEnd) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceType()

        }
        IType parentType = (IType) createElement(scope.parent, elementPosition, unit, existingElements, knownScopes);
        MethodScope methodScope = (MethodScope) scope;
        if (methodScope.isInsideInitializer()) {
          // inside field or initializer, must find proper one
          TypeDeclaration type = methodScope.referenceType();
          int occurenceCount = 1;
          int length = type.fields == null ? 0 : type.fields.length;
          for (int i = 0; i < length; i++) {
            FieldDeclaration field = type.fields[i];
            if (field.declarationSourceStart <= elementPosition && elementPosition <= field.declarationSourceEnd) {
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.