/** * Sets access type of this field. The access code is verified for validity * as well as against the access style used by the declaring class. */ public void setAccessType(int fCode) { ClassMetaData owner = getDeclaringMetaData(); owner.mergeFieldAccess(this, fCode); _access = fCode; }
/** * Sets access type of this field. The access code is verified for validity * as well as against the access style used by the declaring class. */ public void setAccessType(int fCode) { ClassMetaData owner = getDeclaringMetaData(); owner.mergeFieldAccess(this, fCode); _access = fCode; }
/** * Sets access type of this field. The access code is verified for validity * as well as against the access style used by the declaring class. */ public void setAccessType(int fCode) { ClassMetaData owner = getDeclaringMetaData(); owner.mergeFieldAccess(this, fCode); _access = fCode; }
/** * Sets access type of this field. The access code is verified for validity * as well as against the access style used by the declaring class. */ public void setAccessType(int fCode) { ClassMetaData owner = getDeclaringMetaData(); owner.mergeFieldAccess(this, fCode); _access = fCode; }
private void addError(Message s, FieldMetaData fmd) { if (errors == null) errors = new ArrayList(); errors.add(loc.get("subclasser-error-field", s, fmd.getFullName(), fmd.getDeclaringMetaData().getSourceFile())); }
private void addError(Message s, FieldMetaData fmd) { if (errors == null) errors = new ArrayList(); errors.add(loc.get("subclasser-error-field", s, fmd.getFullName(), fmd.getDeclaringMetaData().getSourceFile())); }
private void addError(Message s, FieldMetaData fmd) { if (errors == null) errors = new ArrayList(); errors.add(loc.get("subclasser-error-field", s, fmd.getFullName(), fmd.getDeclaringMetaData().getSourceFile())); }
private void addError(Message s, FieldMetaData fmd) { if (errors == null) errors = new ArrayList(); errors.add(loc.get("subclasser-error-field", s, fmd.getFullName(), fmd.getDeclaringMetaData().getSourceFile())); }
private void addError(Message s, FieldMetaData fmd) { if (errors == null) errors = new ArrayList(); errors.add(loc.get("subclasser-error-field", s, fmd.getFullName(), fmd.getDeclaringMetaData().getSourceFile())); }
/** * Gets the access type used by this field. If no access type is set for * this field then return the access type used by the declaring class. */ public int getAccessType() { if (AccessCode.isUnknown(_access)) { int fCode = AccessCode.toFieldCode(getDeclaringMetaData() .getAccessType()); return fCode; } return _access; }
/** * Gets the access type used by this field. If no access type is set for * this field then return the access type used by the declaring class. */ public int getAccessType() { if (AccessCode.isUnknown(_access)) { int fCode = AccessCode.toFieldCode(getDeclaringMetaData() .getAccessType()); return fCode; } return _access; }
/** * Gets the access type used by this field. If no access type is set for * this field then return the access type used by the declaring class. */ public int getAccessType() { if (AccessCode.isUnknown(_access)) { int fCode = AccessCode.toFieldCode(getDeclaringMetaData() .getAccessType()); return fCode; } return _access; }
private void addContractViolation(Message m, FieldMetaData fmd) { // add the violation as an error in case we're processing violations // as errors; this keeps them in the order that they were found rather // than just adding the violations to the end of the list. if (failOnContractViolations) addError(m, fmd); if (contractViolations == null) contractViolations = new ArrayList(); contractViolations.add(loc.get ("subclasser-contract-violation-field", m.getMessage(), fmd.getFullName(), fmd.getDeclaringMetaData().getSourceFile())); } }
/** * Gets the access type used by this field. If no access type is set for * this field then return the access type used by the declaring class. */ public int getAccessType() { if (AccessCode.isUnknown(_access)) { int fCode = AccessCode.toFieldCode(getDeclaringMetaData() .getAccessType()); return fCode; } return _access; }
private void addContractViolation(Message m, FieldMetaData fmd) { // add the violation as an error in case we're processing violations // as errors; this keeps them in the order that they were found rather // than just adding the violations to the end of the list. if (failOnContractViolations) addError(m, fmd); if (contractViolations == null) contractViolations = new ArrayList(); contractViolations.add(loc.get ("subclasser-contract-violation-field", m.getMessage(), fmd.getFullName(), fmd.getDeclaringMetaData().getSourceFile())); } }
private void addContractViolation(Message m, FieldMetaData fmd) { // add the violation as an error in case we're processing violations // as errors; this keeps them in the order that they were found rather // than just adding the violations to the end of the list. if (failOnContractViolations) addError(m, fmd); if (contractViolations == null) contractViolations = new ArrayList(); contractViolations.add(loc.get ("subclasser-contract-violation-field", m.getMessage(), fmd.getFullName(), fmd.getDeclaringMetaData().getSourceFile())); } }
private void addContractViolation(Message m, FieldMetaData fmd) { // add the violation as an error in case we're processing violations // as errors; this keeps them in the order that they were found rather // than just adding the violations to the end of the list. if (failOnContractViolations) addError(m, fmd); if (contractViolations == null) contractViolations = new ArrayList(); contractViolations.add(loc.get ("subclasser-contract-violation-field", m.getMessage(), fmd.getFullName(), fmd.getDeclaringMetaData().getSourceFile())); } }
private void addContractViolation(Message m, FieldMetaData fmd) { // add the violation as an error in case we're processing violations // as errors; this keeps them in the order that they were found rather // than just adding the violations to the end of the list. if (failOnContractViolations) addError(m, fmd); if (contractViolations == null) contractViolations = new ArrayList(); contractViolations.add(loc.get ("subclasser-contract-violation-field", m.getMessage(), fmd.getFullName(), fmd.getDeclaringMetaData().getSourceFile())); } }
/** * Gets the backing member of the given field. If the field has not been * assigned a backing member then get either the instance field or the * getter method depending upon the access style of the defining class. * <br> * Defining class is used instead of declaring class because this method * may be invoked during parsing phase when declaring metadata may not be * available. */ public Member getBackingMember(FieldMetaData fmd) { if (fmd == null) return null; if (fmd.getBackingMember() != null) return fmd.getBackingMember(); return getMemberByProperty(fmd.getDeclaringMetaData(), fmd.getName(), fmd.getAccessType(), true); }
/** * Gets the backing member of the given field. If the field has not been * assigned a backing member then get either the instance field or the * getter method depending upon the access style of the defining class. * <br> * Defining class is used instead of declaring class because this method * may be invoked during parsing phase when declaring metadata may not be * available. */ public Member getBackingMember(FieldMetaData fmd) { if (fmd == null) return null; if (fmd.getBackingMember() != null) return fmd.getBackingMember(); return getMemberByProperty(fmd.getDeclaringMetaData(), fmd.getName(), fmd.getAccessType(), true); }