@Override public void setPointer(Pointer p) { if (immutable) { throw new UnsupportedOperationException("immutable reference"); } super.setPointer(p); }
@Override public void setPointer(Pointer p) { if (immutable) { throw new UnsupportedOperationException("immutable reference"); } super.setPointer(p); }
public void setPointer(Pointer p) { if (immutable) { throw new UnsupportedOperationException("immutable"); } super.setPointer(p); } }
public void setPointer(Pointer p) { if (immutable) { throw new UnsupportedOperationException("immutable reference"); } super.setPointer(p); } }
public void setPointer(Pointer p) { if (immutable) { throw new UnsupportedOperationException("immutable"); } super.setPointer(p); } }
public void setPointer(Pointer p) { if (immutable) { throw new UnsupportedOperationException("immutable"); } super.setPointer(p); } }
public T getValue(Class<T> type) { Pointer value = getPointer().getPointer(0); if(value==null) return null; try { T v = type.newInstance(); v.setPointer(value); return v; } catch (InstantiationException e) { throw new InstantiationError(e.getMessage()); } catch (IllegalAccessException e) { throw new IllegalAccessError(e.getMessage()); } } }
public T getValue(Class<T> type) { Pointer value = getPointer().getPointer(0); if(value==null) return null; try { T v = type.newInstance(); v.setPointer(value); return v; } catch (InstantiationException e) { throw new InstantiationError(e.getMessage()); } catch (IllegalAccessException e) { throw new IllegalAccessError(e.getMessage()); } } }
protected T getValue() { if (value == null) { try { value = type.newInstance(); } catch (Exception e) { throw new RuntimeException("Failed to instantiate pointer to " + StringUtils.implode(symbols, "/"), e); } Pointer pointer = getPointer(); if (indirected) { pointer = pointer.getPointer(0); } value.setPointer(pointer); } return value; } @Override
protected T getValue() { if (value == null) { try { value = type.newInstance(); } catch (Exception e) { throw new RuntimeException("Failed to instantiate pointer to " + StringUtils.implode(symbols, "/"), e); } Pointer pointer = getPointer(); if (indirected) { pointer = pointer.getPointer(0); } value.setPointer(pointer); } return value; } @Override