Examples of canBeSeenBy()


Examples of org.eclipse.jdt.internal.compiler.lookup.FieldBinding.canBeSeenBy()

      if (field.isSynthetic()) continue next;

      if (onlyStaticFields && !field.isStatic()) continue next;

      if (!field.canBeSeenBy(receiverType, invocationSite, scope)) continue next;

      for (int i = fieldsFound.size; --i >= 0;) {
        FieldBinding otherField = (FieldBinding) fieldsFound.elementAt(i);
        if (CharOperation.equals(field.name, otherField.name, true)) {
          continue next;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodBinding.canBeSeenBy()

      if (method.isConstructor()) continue next;

      if (onlyStaticMethods && !method.isStatic()) continue next;

      if (!method.canBeSeenBy(receiverType, invocationSite, scope)) continue next;

      for (int i = methodsFound.size; --i >= 0;) {
        MethodBinding otherMethod = (MethodBinding) methodsFound.elementAt(i);
        if (method == otherMethod)
          continue next;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodBinding.canBeSeenBy()

* @param valueRequired boolean
*/
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
  int pc = codeStream.position;
  MethodBinding codegenBinding = this.binding.original();
  if (codegenBinding.canBeSeenBy(this.actualReceiverType, this, currentScope)) {
    // generate receiver/enclosing instance access
    boolean isStatic = codegenBinding.isStatic();
    // outer access ?
    if (!isStatic && ((this.bits & DepthMASK) != 0)) {
      // outer method can be reached through emulation
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodBinding.canBeSeenBy()

* @param valueRequired boolean
*/
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
  int pc = codeStream.position;
  MethodBinding codegenBinding = this.binding.original();
  if (codegenBinding.canBeSeenBy(this.actualReceiverType, this, currentScope)) {
    // generate receiver/enclosing instance access
    boolean isStatic = codegenBinding.isStatic();
    // outer access ?
    if (!isStatic && ((this.bits & DepthMASK) != 0)) {
      // outer method can be reached through emulation
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodBinding.canBeSeenBy()

public void generateCode(BlockScope currentScope, CodeStream codeStream,   boolean valueRequired) {
  int pc = codeStream.position;
  MethodBinding codegenBinding = this.binding.original();
  ReferenceBinding allocatedType = codegenBinding.declaringClass;

  if (codegenBinding.canBeSeenBy(allocatedType, this, currentScope)) {
    codeStream.new_(allocatedType);
    if (valueRequired) {
      codeStream.dup();
    }
    // better highlight for allocation: display the type individually
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodBinding.canBeSeenBy()

      if (method.isConstructor()) continue next;

      if (onlyStaticMethods && !method.isStatic()) continue next;

      if (!method.canBeSeenBy(receiverType, invocationSite, scope)) continue next;

      for (int i = methodsFound.size; --i >= 0;) {
        MethodBinding otherMethod = (MethodBinding) methodsFound.elementAt(i);
        if (method == otherMethod)
          continue next;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.canBeSeenBy()

      return ArrayBinding.ArrayLength;
    return null;
  }

  ReferenceBinding currentType = (ReferenceBinding) receiverType;
  if (!currentType.canBeSeenBy(this))
    return new ProblemFieldBinding(currentType, fieldName, ProblemReasons.ReceiverTypeNotVisible);

  FieldBinding field = currentType.getField(fieldName, true /*resolve*/);
  if (field != null) {
    if (canBeSeenByForCodeSnippet(field, currentType, invocationSite, this))
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.canBeSeenBy()

          // from 1.5 source level on, array#clone() resolves to array type, but codegen to #clone()Object - thus require extra inserted cast
      this.valueCast = runtimeTimeType;
    }
        if (this.valueCast instanceof ReferenceBinding) {
      ReferenceBinding referenceCast = (ReferenceBinding) this.valueCast;
      if (!referenceCast.canBeSeenBy(scope)) {
            scope.problemReporter().invalidType(this,
                new ProblemReferenceBinding(
              CharOperation.splitOn('.', referenceCast.shortReadableName()),
              referenceCast,
              ProblemReasons.NotVisible));
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.canBeSeenBy()

          : runtimeTimeType;
      TypeBinding typeCast = originalType.genericCast(targetType);
      setGenericCast(length, typeCast);
      if (typeCast instanceof ReferenceBinding) {
        ReferenceBinding referenceCast = (ReferenceBinding) typeCast;
        if (!referenceCast.canBeSeenBy(scope)) {
          scope.problemReporter().invalidType(this,
              new ProblemReferenceBinding(
                  CharOperation.splitOn('.', referenceCast.shortReadableName()),
                  referenceCast,
                  ProblemReasons.NotVisible));
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.canBeSeenBy()

          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.genericCast = originalType.genericCast(scope.boxing(targetType));
          if (this.genericCast instanceof ReferenceBinding) {
        ReferenceBinding referenceCast = (ReferenceBinding) this.genericCast;
        if (!referenceCast.canBeSeenBy(scope)) {
              scope.problemReporter().invalidType(this,
                  new ProblemReferenceBinding(
                CharOperation.splitOn('.', referenceCast.shortReadableName()),
                referenceCast,
                ProblemReasons.NotVisible));
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.