Package org.eclipse.jdt.internal.compiler.lookup

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


      Constant fieldConstant = codegenBinding.constant();
      if (fieldConstant == Constant.NotAConstant) {
        if (codegenBinding.declaringClass == null) { // array length
          codeStream.arraylength();
        } else {
          if (codegenBinding.canBeSeenBy(this.actualReceiverType, this, currentScope)) {
            TypeBinding constantPoolDeclaringClass = CodeStream.getConstantPoolDeclaringClass(currentScope, codegenBinding, this.actualReceiverType, this.receiver.isImplicitThis());
            if (isStatic) {
              codeStream.fieldAccess(Opcodes.OPC_getstatic , codegenBinding, constantPoolDeclaringClass);
            } else {
              codeStream.fieldAccess(Opcodes.OPC_getfield, codegenBinding, constantPoolDeclaringClass);
View Full Code Here


}

public void generateCompoundAssignment(BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired) {
  boolean isStatic;
  FieldBinding codegenBinding = this.binding.original();
  if (codegenBinding.canBeSeenBy(this.actualReceiverType, this, currentScope)) {
    this.receiver.generateCode(currentScope, codeStream, !(isStatic = codegenBinding.isStatic()));
    TypeBinding constantPoolDeclaringClass = CodeStream.getConstantPoolDeclaringClass(currentScope, codegenBinding, this.actualReceiverType, this.receiver.isImplicitThis());
    if (isStatic) {
      codeStream.fieldAccess(Opcodes.OPC_getstatic, codegenBinding, constantPoolDeclaringClass);
    } else {
View Full Code Here

  }
}
public void generatePostIncrement(BlockScope currentScope, CodeStream codeStream, CompoundAssignment postIncrement, boolean valueRequired) {
  boolean isStatic;
  FieldBinding codegenBinding = this.binding.original();
  if (codegenBinding.canBeSeenBy(this.actualReceiverType, this, currentScope)) {
    super.generatePostIncrement(currentScope, codeStream, postIncrement, valueRequired);
  } else {
    this.receiver.generateCode(currentScope, codeStream, !(isStatic = codegenBinding.isStatic()));
    if (isStatic) {
      codeStream.aconst_null();
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.