public void LinkTo(IJavaType owner) { if (null != FieldType) { throw new InvalidOperationException(); } OwningType = owner; ((BaseClassDefinition)owner).RegisterField(this); return; }
public Field(IJavaType owningType, IJavaType type, string name) { OwningType = owningType; Name = name; FieldType = type; return; }
public Prototype(IJavaType returnType, string shortDescriptor, List<IJavaType> parametersType) { ReturnType = returnType; ShortDescriptor = shortDescriptor; ParametersType = parametersType; return; }
public Method(IJavaType owningtype, string methodName, Prototype methodPrototype) { OwningType = owningtype; // Helpers.GetUndecoratedClassName(className); Name = methodName; Prototype = methodPrototype; DebugId = NextDebugId++; return; }
public void LinkTo(IJavaType owner) { if (null != OwningType) { throw new InvalidOperationException(); } OwningType = owner; return; }
internal void SetDefinition(IJavaType value) { if (null != Definition) { throw new InvalidOperationException(); } Definition = value; return; }
public virtual void SetBaseClass(IJavaType value) { if (null != _superClass) { throw new InvalidOperationException(); } if (null == value) { throw new ArgumentNullException(); } _superClass = value; // Consider checking that super class name matches the name // of the value. _superClassName = null; return; }
public virtual void SetBaseClass(string name) { if (null != _superClass) { throw new InvalidOperationException(); } if (null != _superClassName) { throw new InvalidOperationException(); } if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException(); } if (ObjectClassName == name) { _superClass = this; } if ("ArrayAdapter" == name) { int i = 1; } _superClassName = name; return; }
private static string BuildCanonicalName(IJavaType indexedType) { if (null == indexedType) { throw new ArgumentNullException(); } StringBuilder builder = new StringBuilder(indexedType.FullyQualifiedBinaryName); return builder.Insert(('L' == builder[0]) ? 1 : 0, '[').ToString(); }