Example #1
0
 public void LinkTo(IJavaType owner)
 {
     if (null != FieldType) { throw new InvalidOperationException(); }
     OwningType = owner;
     ((BaseClassDefinition)owner).RegisterField(this);
     return;
 }
Example #2
0
 public Field(IJavaType owningType, IJavaType type, string name)
 {
     OwningType = owningType;
     Name = name;
     FieldType = type;
     return;
 }
Example #3
0
 public Prototype(IJavaType returnType, string shortDescriptor,
     List<IJavaType> parametersType)
 {
     ReturnType = returnType;
     ShortDescriptor = shortDescriptor;
     ParametersType = parametersType;
     return;
 }
Example #4
0
 public Method(IJavaType owningtype, string methodName, Prototype methodPrototype)
 {
     OwningType = owningtype;
     // Helpers.GetUndecoratedClassName(className);
     Name = methodName;
     Prototype = methodPrototype;
     DebugId = NextDebugId++;
     return;
 }
Example #5
0
 public void LinkTo(IJavaType owner)
 {
     if (null != OwningType) { throw new InvalidOperationException(); }
     OwningType = owner;
     return;
 }
Example #6
0
 internal void SetDefinition(IJavaType value)
 {
     if (null != Definition) { throw new InvalidOperationException(); }
     Definition = value;
     return;
 }
Example #7
0
 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;
 }
Example #8
0
 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;
 }
Example #9
0
 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();
 }