Exemple #1
0
 internal ReferenceBTValue(BTType btType)
 {
     this.next   = null;
     this.types  = new ArrayList();
     this.btType = btType;
     this.flds   = new Hashtable();
     this.crtrs  = new Creators();
 }
Exemple #2
0
        public static BTType[] GetObjectFieldBTTypes(NewObject upNode)
        {
            ReferenceBTValue obj = AnnotatingVisitor.GetNewBTValue(upNode);
            FieldInfo[] fldInfos = ReflectionUtils.GetAllFields(upNode.Constructor.DeclaringType);
            BTType[] btTypes = new BTType[fldInfos.Length];
            for (int i = 0; i < btTypes.Length; i++)
                btTypes[i] = obj[fldInfos[i]].BTType;

            return btTypes;
        }
Exemple #3
0
 internal override Creators Lift()
 {
     if (this.btType == BTType.Static)
     {
         this.btType = BTType.Dynamic;
         return(this.crtrs);
     }
     else
     {
         return(new Creators());
     }
 }
Exemple #4
0
 private Creators lift()
 {
     if (this.btType == BTType.Static)
     {
         this.btType = BTType.Dynamic;
         this.flds.Clear();
         return(this.crtrs);
     }
     else
     {
         return(new Creators());
     }
 }
Exemple #5
0
 private Creators lift()
 {
     if (this.btType == BTType.Static)
     {
         this.btType = BTType.Dynamic;
         this.flds.Clear();
         return this.crtrs;
     }
     else
         return new Creators();
 }
Exemple #6
0
 internal static ReferenceBTValue NewReferenceBTValue(Type type, BTType btType)
 {
     return type == typeof(void) ? null : new ReferenceBTValue(btType);
 }
Exemple #7
0
 internal ReferenceBTValue(Type type, BTType btType)
 {
     this.next = null;
     this.types = new ArrayList();
     this.addType(type);
     this.btType = btType;
     this.flds = new Hashtable();
     this.crtrs = new Creators();
 }
Exemple #8
0
 internal override Creators Lift()
 {
     if (this.btType == BTType.Static)
     {
         this.btType = BTType.Dynamic;
         return this.crtrs;
     }
     else
         return new Creators();
 }
Exemple #9
0
 internal PrimitiveBTValue(BTType btType)
 {
     this.btType = btType;
     this.crtrs = new Creators();
 }
Exemple #10
0
 internal NBTValue(BTType btType)
 {
     this.next = null;
     this.types = new ArrayList();
     this.btType = btType;
     this.flds = new Hashtable();
     this.crtrs = new Creators();
 }
Exemple #11
0
 internal static void SetNodeBTType(Node upNode, BTType btType)
 {
     upNode.Options["BTType"] = btType;
 }
Exemple #12
0
 internal static ReferenceBTValue NewReferenceBTValue(Type type, BTType btType)
 {
     return(type == typeof(void) ? null : new ReferenceBTValue(btType));
 }
Exemple #13
0
 internal PrimitiveBTValue(BTType btType)
 {
     this.btType = btType;
     this.crtrs  = new Creators();
 }